projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acebd9b
)
System: Forgot to qrefresh with my last change.
author
Gabe Black
<gblack@eecs.umich.edu>
Fri, 3 Feb 2012 17:48:10 +0000
(09:48 -0800)
committer
Gabe Black
<gblack@eecs.umich.edu>
Fri, 3 Feb 2012 17:48:10 +0000
(09:48 -0800)
src/sim/system.cc
patch
|
blob
|
history
diff --git
a/src/sim/system.cc
b/src/sim/system.cc
index 47791beaa5fb71af443269a9818e7d45f77c0b97..eb66f7825a1c281071390e729ee3b440c96f7e86 100644
(file)
--- a/
src/sim/system.cc
+++ b/
src/sim/system.cc
@@
-296,7
+296,7
@@
System::allocPhysPages(int npages)
{
Addr return_addr = pagePtr << LogVMPageSize;
pagePtr += npages;
- if (
return_addr + npages - 1 >=
physmem->size())
+ if (
pagePtr >
physmem->size())
fatal("Out of memory, please increase size of physical memory.");
return return_addr;
}