From 04e6a3a07b6fdaba9f0954971b61556078611a55 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 20 Nov 2006 18:11:19 -0500 Subject: [PATCH] Fix an assert to correctly make sure a request falls entirely inside a memory. --HG-- extra : convert_revision : 71cf02edffbc7029666c0d9c97b67e1d32332758 --- src/mem/physical.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.30.2