Hello everyone,
A similar question was asked before but I don't think it was answered
completely. I am trying to get a trace of the data that is written into the
L2 cache. I made data in packet.hh public and tried to print
(int)*(pkt->data).
For example, in handlefill() in cache_impl.hh

// if we got new data, copy it in
    if (pkt->isRead()) {
        std::memcpy(blk->data, pkt->getPtr<uint8_t>(), blkSize);
DPRINTF(CacheData,"command, %s, address, %s, data, %d\n",pkt->cmdString(),
pkt->getAddr(), (int)*(pkt->getPtr<uint8_t>()));
    }

I found that most of the data values printed in the trace are 0. Is this
right?
Thank you.
--Vishaal Mohan
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to