summaryrefslogtreecommitdiff
path: root/src/sim/system.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-10-06 21:45:34 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-10-06 21:45:34 -0400
commitb7832555d57ef47740124c46e7b21f6d10b08f26 (patch)
treee9ba441f8cac0185295a88c10cb2b43d5c912df1 /src/sim/system.cc
parent17b0e9714d4bde7462d4663899bb9498027f6b40 (diff)
downloadgem5-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
Diffstat (limited to 'src/sim/system.cc')
-rw-r--r--src/sim/system.cc2
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