mem: Make MemoryAccess flag more verbose
This patch extends the MemoryAccess debug flag to report who sent the requests and the cacheability.
This commit is contained in:
parent
8a8e5cdc7e
commit
60ce2b34fe
1 changed files with 12 additions and 8 deletions
|
@ -273,10 +273,12 @@ AbstractMemory::checkLockedAddrList(PacketPtr pkt)
|
||||||
|
|
||||||
#if TRACING_ON
|
#if TRACING_ON
|
||||||
|
|
||||||
#define CASE(A, T) \
|
#define CASE(A, T) \
|
||||||
case sizeof(T): \
|
case sizeof(T): \
|
||||||
DPRINTF(MemoryAccess,"%s of size %i on address 0x%x data 0x%x\n", \
|
DPRINTF(MemoryAccess,"%s from %s of size %i on address 0x%x data " \
|
||||||
A, pkt->getSize(), pkt->getAddr(), pkt->get<T>()); \
|
"0x%x %c\n", A, system()->getMasterName(pkt->req->masterId()),\
|
||||||
|
pkt->getSize(), pkt->getAddr(), pkt->get<T>(), \
|
||||||
|
pkt->req->isUncacheable() ? 'U' : 'C'); \
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
@ -288,10 +290,12 @@ AbstractMemory::checkLockedAddrList(PacketPtr pkt)
|
||||||
CASE(A, uint16_t); \
|
CASE(A, uint16_t); \
|
||||||
CASE(A, uint8_t); \
|
CASE(A, uint8_t); \
|
||||||
default: \
|
default: \
|
||||||
DPRINTF(MemoryAccess, "%s of size %i on address 0x%x\n", \
|
DPRINTF(MemoryAccess, "%s from %s of size %i on address 0x%x %c\n",\
|
||||||
A, pkt->getSize(), pkt->getAddr()); \
|
A, system()->getMasterName(pkt->req->masterId()), \
|
||||||
DDUMP(MemoryAccess, pkt->getPtr<uint8_t>(), pkt->getSize());\
|
pkt->getSize(), pkt->getAddr(), \
|
||||||
} \
|
pkt->req->isUncacheable() ? 'U' : 'C'); \
|
||||||
|
DDUMP(MemoryAccess, pkt->getPtr<uint8_t>(), pkt->getSize()); \
|
||||||
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue