From: Brad Beckmann Date: Thu, 1 Dec 2011 18:08:52 +0000 (-0800) Subject: physmem: Improved fatal message for size mismatch X-Git-Tag: stable_2012_02_02~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cecbdb6d79be56c54a729b260c1c605afd7add21;p=gem5.git physmem: Improved fatal message for size mismatch --HG-- extra : rebase_source : 16da1c63263f8fd6fef9a842c577343cd6246a35 --- 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 §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);