From a8fbfefb5e0fd3b45d6961b07a172018c87c0251 Mon Sep 17 00:00:00 2001 From: Uri Wiener Date: Mon, 22 Apr 2013 13:20:33 -0400 Subject: 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). --- src/mem/abstract_mem.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mem/abstract_mem.cc') 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(), 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()]++; -- cgit v1.2.3