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.
This commit is contained in:
Andreas Hansson
2013-01-07 13:05:35 -05:00
parent 0d1ad50326
commit 174269978a

View File

@@ -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",