projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aea847
)
physmem: Improved fatal message for size mismatch
author
Brad Beckmann
<Brad.Beckmann@amd.com>
Thu, 1 Dec 2011 18:08:52 +0000
(10:08 -0800)
committer
Brad Beckmann
<Brad.Beckmann@amd.com>
Thu, 1 Dec 2011 18:08:52 +0000
(10:08 -0800)
--HG--
extra : rebase_source :
16da1c63263f8fd6fef9a842c577343cd6246a35
src/mem/physical.cc
patch
|
blob
|
history
diff --git
a/src/mem/physical.cc
b/src/mem/physical.cc
index 7337c800c6167bd6e8e6b67e64fe3a8c648aaa5e..91b9052a140dfbb396d919d7beeba15afb32304e 100644
(file)
--- a/
src/mem/physical.cc
+++ b/
src/mem/physical.cc
@@
-557,7
+557,8
@@
PhysicalMemory::unserialize(Checkpoint *cp, const string §ion)
UNSERIALIZE_SCALAR(_size);
if (size() > params()->range.size())
- fatal("Memory size has changed!\n");
+ fatal("Memory size has changed! size %lld, param size %lld\n",
+ size(), params()->range.size());
pmemAddr = (uint8_t *)mmap(NULL, size(),
PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);