On Fri, 4 Feb 2011, biswabandan panda wrote:
miss to a particular block in a particular set
On Fri, Feb 4, 2011 at 8:34 PM, Nilay Vaish <[email protected]> wrote:
On Fri, 4 Feb 2011, biswabandan panda wrote:
Hi all,
i want to generate block address and set nos for the misses also
in line no 326 to 328 cache_impl.hh. i have done it for hits for misses
,
i am facing problems because the blocks findBlk and findBlock returns only
the hit blocks and after that there is use of (blk != NULL) which checks
it
again. Any idea how i can generate traces of blocka ddress and set numbers
for misses also.
i have done in this way for hits
:
DPRINTF(Cache, "%s %s %d %x %s\n", pkt->cmdString(),
pkt->req->isInstFetch() ? "(ifetch)" : "",
blk->set, tags->regenerateBlkAddr(blk->tag,blk->set),blk ? "hit"
: "miss");
How can a miss have a set number? pkt->getAddr() should yield the address
that was being accessed.
--
tags->extractSet(address) should give you the set.
--
Nilay
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users