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
This commit is contained in:
parent
17b0e9714d
commit
b7832555d5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue