From cecbdb6d79be56c54a729b260c1c605afd7add21 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Thu, 1 Dec 2011 10:08:52 -0800 Subject: [PATCH] physmem: Improved fatal message for size mismatch --HG-- extra : rebase_source : 16da1c63263f8fd6fef9a842c577343cd6246a35 --- src/mem/physical.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2