System: Forgot to qrefresh with my last change.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 3 Feb 2012 17:48:10 +0000 (09:48 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 3 Feb 2012 17:48:10 +0000 (09:48 -0800)
src/sim/system.cc

index 47791beaa5fb71af443269a9818e7d45f77c0b97..eb66f7825a1c281071390e729ee3b440c96f7e86 100644 (file)
@@ -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;
 }