diff options
author | Uri Wiener <uri.wiener@arm.com> | 2013-04-22 13:20:33 -0400 |
---|---|---|
committer | Uri Wiener <uri.wiener@arm.com> | 2013-04-22 13:20:33 -0400 |
commit | a8fbfefb5e0fd3b45d6961b07a172018c87c0251 (patch) | |
tree | dbc13a043ab0c0daa0da3913ee349c933fc94ac6 /src/mem/abstract_mem.cc | |
parent | 9929e884b6fe6567c3bd2fe2dd3bba85d4e9bbd1 (diff) | |
download | gem5-a8fbfefb5e0fd3b45d6961b07a172018c87c0251.tar.xz |
mem: Adding verbose debug output in the memory system
This patch provides useful printouts throughut the memory system. This
includes pretty-printed cache tags and function call messages
(call-stack like).
Diffstat (limited to 'src/mem/abstract_mem.cc')
-rw-r--r-- | src/mem/abstract_mem.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc index fb8b7d81b..b25b32616 100644 --- a/src/mem/abstract_mem.cc +++ b/src/mem/abstract_mem.cc @@ -363,8 +363,11 @@ AbstractMemory::access(PacketPtr pkt) bytesInstRead[pkt->req->masterId()] += pkt->getSize(); } else if (pkt->isWrite()) { if (writeOK(pkt)) { - if (pmemAddr) + if (pmemAddr) { memcpy(hostAddr, pkt->getPtr<uint8_t>(), pkt->getSize()); + DPRINTF(MemoryAccess, "%s wrote %x bytes to address %x\n", + __func__, pkt->getSize(), pkt->getAddr()); + } assert(!pkt->req->isInstFetch()); TRACE_PACKET("Write"); numWrites[pkt->req->masterId()]++; |