changeset b08ec9cf2e3f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b08ec9cf2e3f
description:
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.
diffstat:
src/mem/physical.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 25ebe5e13a07 -r b08ec9cf2e3f src/mem/physical.cc
--- a/src/mem/physical.cc Mon Jan 07 13:05:35 2013 -0500
+++ b/src/mem/physical.cc Mon Jan 07 13:05:35 2013 -0500
@@ -293,7 +293,7 @@
{
// 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",
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev