summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2012-02-03 09:48:10 -0800
committerGabe Black <gblack@eecs.umich.edu>2012-02-03 09:48:10 -0800
commitcbcdcd53a78d56827c33a8c7610f8f6585ebbd82 (patch)
tree90f3130c890fe74fd977ce96019d8a6fec427660 /src
parentacebd9bf917df996d6e94f16d8ca7b45f4c200de (diff)
downloadgem5-cbcdcd53a78d56827c33a8c7610f8f6585ebbd82.tar.xz
System: Forgot to qrefresh with my last change.
Diffstat (limited to 'src')
-rw-r--r--src/sim/system.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc
index 47791beaa..eb66f7825 100644
--- 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;
}