summaryrefslogtreecommitdiff
path: root/src/mem/physical.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/physical.cc')
-rw-r--r--src/mem/physical.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc
index 2f358daf2..4ea58e5e3 100644
--- a/src/mem/physical.cc
+++ b/src/mem/physical.cc
@@ -304,9 +304,13 @@ PhysicalMemory::doAtomicAccess(PacketPtr pkt)
void
PhysicalMemory::doFunctionalAccess(PacketPtr pkt)
{
+ warn("addr %#x >= %#x AND %#x <= %#x",
+ pkt->getAddr(), start(), pkt->getAddr() + pkt->getSize(), start() + size());
+
assert(pkt->getAddr() >= start() &&
pkt->getAddr() + pkt->getSize() <= start() + size());
+
uint8_t *hostAddr = pmemAddr + pkt->getAddr() - start();
if (pkt->cmd == MemCmd::ReadReq) {