summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/physical.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc
index 8fea733ec..0580954de 100644
--- a/src/mem/physical.cc
+++ b/src/mem/physical.cc
@@ -113,7 +113,7 @@ PhysicalMemory::calculateLatency(Packet *pkt)
void
PhysicalMemory::doFunctionalAccess(Packet *pkt)
{
- assert(pkt->getAddr() + pkt->getSize() < params()->addrRange.size());
+ assert(pkt->getAddr() + pkt->getSize() <= params()->addrRange.size());
switch (pkt->cmd) {
case Packet::ReadReq: