summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2011-12-01 10:08:52 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2011-12-01 10:08:52 -0800
commitcecbdb6d79be56c54a729b260c1c605afd7add21 (patch)
tree13a1525b3663d896bd566760e3b6a94658c1391d
parent9aea847f5891214f456cc9d6e173d7fbb1a30c0a (diff)
downloadgem5-cecbdb6d79be56c54a729b260c1c605afd7add21.tar.xz
physmem: Improved fatal message for size mismatch
--HG-- extra : rebase_source : 16da1c63263f8fd6fef9a842c577343cd6246a35
-rw-r--r--src/mem/physical.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc
index 7337c800c..91b9052a1 100644
--- a/src/mem/physical.cc
+++ b/src/mem/physical.cc
@@ -557,7 +557,8 @@ PhysicalMemory::unserialize(Checkpoint *cp, const string &section)
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);