On Thu, 3 Feb 2011, biswabandan panda wrote:

i didn't get u , u mean to say which of these are invalid right? Then the
function is taking Blocktype  *&blk

i have tried with (&block)-> set and all if i am not wrong ?


On Thu, Feb 3, 2011 at 10:30 PM, Nilay Vaish <[email protected]> wrote:

On Thu, 3 Feb 2011, biswabandan panda wrote:

 hi all,
          i have changed these two lines in cache_impl.hh  to get the
traces for address of the block and set  no  instead of  packet->address
only.

lines 326-328


  DPRINTF(Cache, "%s%s %x %d %x %s\n", pkt->cmdString(),
          pkt->req->isInstFetch() ? " (ifetch)" : "",
           blk->set, tags->regenerateBlkAddr(blk->tag, blk->set),(blk) ?
"hit" : "miss");

i am able to build it without errors and its running fine but when i am
specifying trace-flag Cache, its showing segmentation fault. i tried gdb
and
all, but  yet to figure it out


Which of these pointers in invalid?


Clearly blk can be invalid, in which case blk->set will result in a segmentation fault.

--
Nilay
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to