physmem: Improved fatal message for size mismatch

--HG--
extra : rebase_source : 16da1c63263f8fd6fef9a842c577343cd6246a35
This commit is contained in:
Brad Beckmann 2011-12-01 10:08:52 -08:00
parent 9aea847f58
commit cecbdb6d79

View file

@ -557,7 +557,8 @@ PhysicalMemory::unserialize(Checkpoint *cp, const string &section)
UNSERIALIZE_SCALAR(_size); UNSERIALIZE_SCALAR(_size);
if (size() > params()->range.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(), pmemAddr = (uint8_t *)mmap(NULL, size(),
PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);