projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1aeb72
)
Fix an assert to correctly make sure a request falls entirely inside a memory.
author
Gabe Black
<gblack@eecs.umich.edu>
Mon, 20 Nov 2006 23:11:19 +0000
(18:11 -0500)
committer
Gabe 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
patch
|
blob
|
history
diff --git
a/src/mem/physical.cc
b/src/mem/physical.cc
index 94f60ad809d5d4771db5f711067c69fa696a369f..9b8ae1fc49b41f43cd47cde2ca4a0f6691e6cd1c 100644
(file)
--- 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());