Re: [gem5-users] cache, access, handleFill, satisfyCpuSideRequest, memcpy

2014-01-30 Thread Steve Reinhardt
std::memcpy(blk-data, pkt-getPtruint8_t(), blkSize) copies an entire cache block, which is what you want if you are receiving a cache miss response (as in handleFill) or processing a writeback (as in access). pkt-writeDataToBlock(blk-data, blkSize) handles writes that are smaller than a cache

[gem5-users] cache, access, handleFill, satisfyCpuSideRequest, memcpy

2014-01-29 Thread Sanem Arslan
Hi, I want to trace cache data where it is read from or written in caches blocks. There are several methods in cache_impl.hh file like access, handleFill and satisfyCpuSideRequest. In access and handleFill methods, a cache block is written like that: std::memcpy(blk-data,