diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-11-20 18:11:19 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-11-20 18:11:19 -0500 |
commit | 04e6a3a07b6fdaba9f0954971b61556078611a55 (patch) | |
tree | 353f26ae5157b981dca019c786071937ae155fa8 | |
parent | c1aeb7229ea44dbc7215b59c73747bee0f1b1572 (diff) | |
download | gem5-04e6a3a07b6fdaba9f0954971b61556078611a55.tar.xz |
Fix an assert to correctly make sure a request falls entirely inside a memory.
--HG--
extra : convert_revision : 71cf02edffbc7029666c0d9c97b67e1d32332758
-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 94f60ad80..9b8ae1fc4 100644 --- a/src/mem/physical.cc +++ b/src/mem/physical.cc @@ -191,7 +191,7 @@ PhysicalMemory::checkLockedAddrList(Request *req) void PhysicalMemory::doFunctionalAccess(PacketPtr pkt) { - assert(pkt->getAddr() + pkt->getSize() > params()->addrRange.start && + assert(pkt->getAddr() >= params()->addrRange.start && pkt->getAddr() + pkt->getSize() <= params()->addrRange.start + params()->addrRange.size()); |