diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2012-02-03 09:48:10 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2012-02-03 09:48:10 -0800 |
commit | cbcdcd53a78d56827c33a8c7610f8f6585ebbd82 (patch) | |
tree | 90f3130c890fe74fd977ce96019d8a6fec427660 /src | |
parent | acebd9bf917df996d6e94f16d8ca7b45f4c200de (diff) | |
download | gem5-cbcdcd53a78d56827c33a8c7610f8f6585ebbd82.tar.xz |
System: Forgot to qrefresh with my last change.
Diffstat (limited to 'src')
-rw-r--r-- | src/sim/system.cc | 2 |
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; } |