Hi
In lru.hh there is a function with 3 arguments:
BlkType* accessBlock(Addr addr, int &lat, int context_src);

the same function in fa_lru.hh has 4 arguments:
FALRUBlk* accessBlock(Addr addr, int &lat, int context_src, int *inCache = 0);

The first function is called from cache_impl.hh like this:
blk = tags->accessBlock(pkt->getAddr(), lat, id);

Everything is fine until I decided to add another argument to the
first function. In cache_impl.hh I added:
blk = tags->accessBlock(pkt->getAddr(), lat, id, pkt->aType);

Also in lru.hh and lru.cc I added the fourth argument:
BlkType* accessBlock(Addr addr, int &lat, int context_src, Packet::myType at);

Now when I compilet, It says:

build/X86_SE/mem/cache/cache_impl.hh:332:5: error: invalid conversion
from 'Packet::myType {aka unsigned int}' to 'int*' [-fpermissive]
build/X86_SE/mem/cache/tags/fa_lru.hh:183:15: error:   initializing
argument 4 of 'FALRUBlk* FALRU::accessBlock(Addr, int&, int, int*)'
[-fpermissive]
build/X86_SE/mem/cache/cache_impl.hh: In member function 'bool
Cache<TagStore>::access(PacketPtr, Cache<TagStore>::BlkType*&, int&,
PacketList&) [with TagStore = IIC, PacketPtr = Packet*,
Cache<TagStore>::BlkType = IICTag, PacketList = std::list<Packet*>]':


The default code has no problem. So why it complains about adding
another argument? Thanks for any suggestion.
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to