summaryrefslogtreecommitdiff
path: root/src/mem/physical.cc
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-10-09 00:09:44 -0400
committerKevin Lim <ktlim@umich.edu>2006-10-09 00:09:44 -0400
commit4167c3c026424530bc9fe28ecdf0c2212bea9b9e (patch)
treeacbf700b41660308f5d68a20a9b62e26edee4bae /src/mem/physical.cc
parent8949d813ff6f9941faf1b173d408e13b0a2440a7 (diff)
downloadgem5-4167c3c026424530bc9fe28ecdf0c2212bea9b9e.tar.xz
Update memory assertion to check for whole range.
src/mem/physical.cc: Update assertion to check for full range. --HG-- extra : convert_revision : ee815702ba4dd6ae1169c0595c978dd153014c73
Diffstat (limited to 'src/mem/physical.cc')
-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: