summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:35 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:35 -0500
commit174269978a356da547119376d538a9d85bd5593a (patch)
treef2642549a1e9baa875b7ce58da0e8029eb8b7ad9
parent0d1ad50326a13a24daed916a069fc9f45775f51d (diff)
downloadgem5-174269978a356da547119376d538a9d85bd5593a.tar.xz
mem: Fix a bug in the memory serialization file naming
This patch fixes a bug that caused multiple systems to overwrite each other physical memory. The system name is now included in the filename such that this is avoided.
-rw-r--r--src/mem/physical.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/physical.cc b/src/mem/physical.cc
index 2b750f0ed..e38a4f76e 100644
--- a/src/mem/physical.cc
+++ b/src/mem/physical.cc
@@ -293,7 +293,7 @@ PhysicalMemory::serializeStore(ostream& os, unsigned int store_id,
{
// we cannot use the address range for the name as the
// memories that are not part of the address map can overlap
- string filename = "store" + to_string(store_id) + ".pmem";
+ string filename = name() + ".store" + to_string(store_id) + ".pmem";
long range_size = range.size();
DPRINTF(Checkpoint, "Serializing physical memory %s with size %d\n",