From: Gabe Black Date: Mon, 20 Nov 2006 23:11:19 +0000 (-0500) Subject: Fix an assert to correctly make sure a request falls entirely inside a memory. X-Git-Tag: m5_2.0_beta3~311 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04e6a3a07b6fdaba9f0954971b61556078611a55;p=gem5.git Fix an assert to correctly make sure a request falls entirely inside a memory. --HG-- extra : convert_revision : 71cf02edffbc7029666c0d9c97b67e1d32332758 --- 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());