diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-10-06 21:45:34 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-10-06 21:45:34 -0400 |
commit | b7832555d57ef47740124c46e7b21f6d10b08f26 (patch) | |
tree | e9ba441f8cac0185295a88c10cb2b43d5c912df1 | |
parent | 17b0e9714d4bde7462d4663899bb9498027f6b40 (diff) | |
download | gem5-b7832555d57ef47740124c46e7b21f6d10b08f26.tar.xz |
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
-rw-r--r-- | src/sim/system.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |