projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b0e97
)
system.cc:
author
Ali Saidi
<saidi@eecs.umich.edu>
Sat, 7 Oct 2006 01:45:34 +0000
(21:45 -0400)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Sat, 7 Oct 2006 01:45:34 +0000
(21:45 -0400)
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
src/sim/system.cc
patch
|
blob
|
history
diff --git
a/src/sim/system.cc
b/src/sim/system.cc
index ad70b9b035f1113ab76555a090fcfcc5dbe20d4d..11ae492b99c36976ecca019a8f57ac262aeae018 100644
(file)
--- 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