From cbcdcd53a78d56827c33a8c7610f8f6585ebbd82 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 3 Feb 2012 09:48:10 -0800 Subject: [PATCH] System: Forgot to qrefresh with my last change. --- src/sim/system.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2