diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-10-09 00:09:44 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-10-09 00:09:44 -0400 |
commit | 4167c3c026424530bc9fe28ecdf0c2212bea9b9e (patch) | |
tree | acbf700b41660308f5d68a20a9b62e26edee4bae /src | |
parent | 8949d813ff6f9941faf1b173d408e13b0a2440a7 (diff) | |
download | gem5-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')
-rw-r--r-- | src/mem/physical.cc | 2 |
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: |