From 174269978a356da547119376d538a9d85bd5593a Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 7 Jan 2013 13:05:35 -0500 Subject: [PATCH] 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. --- src/mem/physical.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.30.2