Update memory assertion to check for whole range.

src/mem/physical.cc:
    Update assertion to check for full range.

--HG--
extra : convert_revision : ee815702ba4dd6ae1169c0595c978dd153014c73
This commit is contained in:
Kevin Lim 2006-10-09 00:09:44 -04:00
parent 8949d813ff
commit 4167c3c026

View file

@ -113,7 +113,7 @@ PhysicalMemory::calculateLatency(Packet *pkt)
void void
PhysicalMemory::doFunctionalAccess(Packet *pkt) PhysicalMemory::doFunctionalAccess(Packet *pkt)
{ {
assert(pkt->getAddr() + pkt->getSize() < params()->addrRange.size()); assert(pkt->getAddr() + pkt->getSize() <= params()->addrRange.size());
switch (pkt->cmd) { switch (pkt->cmd) {
case Packet::ReadReq: case Packet::ReadReq: