From: Gabe Black Date: Fri, 3 Feb 2012 17:48:10 +0000 (-0800) Subject: System: Forgot to qrefresh with my last change. X-Git-Tag: stable_2012_06_28~260 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbcdcd53a78d56827c33a8c7610f8f6585ebbd82;p=gem5.git System: Forgot to qrefresh with my last change. --- 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; }