Fix an assert to correctly make sure a request falls entirely inside a memory.
--HG-- extra : convert_revision : 71cf02edffbc7029666c0d9c97b67e1d32332758
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user