From: Ali Saidi Date: Sat, 7 Oct 2006 01:45:34 +0000 (-0400) Subject: system.cc: X-Git-Tag: m5_2.0_beta2~73^2~19^2~26^2^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7832555d57ef47740124c46e7b21f6d10b08f26;p=gem5.git system.cc: Make new_page() check for an out of memory condition src/sim/system.cc: Make new_page() check for an out of memory condition --HG-- extra : convert_revision : daee82788464fca186eb24285b5f43c9fabc25b3 --- diff --git a/src/sim/system.cc b/src/sim/system.cc index ad70b9b03..11ae492b9 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -219,6 +219,8 @@ System::new_page() { Addr return_addr = page_ptr << LogVMPageSize; ++page_ptr; + if (return_addr >= physmem->size()) + fatal("Out of memory, please increase size of physical memory."); return return_addr; } #endif