Fix an assert to correctly make sure a request falls entirely inside a memory.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 20 Nov 2006 23:11:19 +0000 (18:11 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 20 Nov 2006 23:11:19 +0000 (18:11 -0500)
--HG--
extra : convert_revision : 71cf02edffbc7029666c0d9c97b67e1d32332758

src/mem/physical.cc

index 94f60ad809d5d4771db5f711067c69fa696a369f..9b8ae1fc49b41f43cd47cde2ca4a0f6691e6cd1c 100644 (file)
@@ -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());