Checkpointing: Name SE page table entries better so that there isn't a problem if...
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 15 Nov 2007 04:42:08 +0000 (23:42 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 15 Nov 2007 04:42:08 +0000 (23:42 -0500)
--HG--
extra : convert_revision : 3bac9bd7fd93fcadf764e2991c5b029f2c745c08

src/mem/page_table.cc

index 6220305b87f2d42db5c8f18025cfe3d20e4beb6e..54165f293c882b6ee1be03991779dab2846daed7 100644 (file)
@@ -156,7 +156,7 @@ PageTable::serialize(std::ostream &os)
     PTableItr iter = pTable.begin();
     PTableItr end = pTable.end();
     while (iter != end) {
-        os << "\n[" << csprintf("%s.Entry%d", name(), count) << "]\n";
+        os << "\n[" << csprintf("%s.Entry%d", process->name(), count) << "]\n";
 
         paramOut(os, "vaddr", iter->first);
         iter->second.serialize(os);
@@ -178,9 +178,9 @@ PageTable::unserialize(Checkpoint *cp, const std::string &section)
     pTable.clear();
 
     while(i < count) {
-        paramIn(cp, csprintf("%s.Entry%d", name(), i), "vaddr", vaddr);
+        paramIn(cp, csprintf("%s.Entry%d", process->name(), i), "vaddr", vaddr);
         entry = new TheISA::TlbEntry();
-        entry->unserialize(cp, csprintf("%s.Entry%d", name(), i));
+        entry->unserialize(cp, csprintf("%s.Entry%d", process->name(), i));
         pTable[vaddr] = *entry;
         ++i;
    }