summaryrefslogtreecommitdiff
path: root/src/arch/x86/pagetable.cc
diff options
context:
space:
mode:
authorJoel Hestness <hestness@cs.utexas.edu>2011-02-06 22:14:17 -0800
committerJoel Hestness <hestness@cs.utexas.edu>2011-02-06 22:14:17 -0800
commit911ccef6c05fff4832245414baa7b2a67955c35a (patch)
tree77da5042ec5220811edbf7d429731053d58a6c0e /src/arch/x86/pagetable.cc
parent38140b5519d7fb925e7a5c53be72399243112c80 (diff)
downloadgem5-911ccef6c05fff4832245414baa7b2a67955c35a.tar.xz
x86: Add checkpointing capability to arch components
Add checkpointing capability to the x86 interrupt device and the TLBs
Diffstat (limited to 'src/arch/x86/pagetable.cc')
-rw-r--r--src/arch/x86/pagetable.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/arch/x86/pagetable.cc b/src/arch/x86/pagetable.cc
index 6de4c956f..a7717def7 100644
--- a/src/arch/x86/pagetable.cc
+++ b/src/arch/x86/pagetable.cc
@@ -52,11 +52,29 @@ TlbEntry::TlbEntry(Addr asn, Addr _vaddr, Addr _paddr) :
void
TlbEntry::serialize(std::ostream &os)
{
+ SERIALIZE_SCALAR(paddr);
+ SERIALIZE_SCALAR(vaddr);
+ SERIALIZE_SCALAR(size);
+ SERIALIZE_SCALAR(writable);
+ SERIALIZE_SCALAR(user);
+ SERIALIZE_SCALAR(uncacheable);
+ SERIALIZE_SCALAR(global);
+ SERIALIZE_SCALAR(patBit);
+ SERIALIZE_SCALAR(noExec);
}
void
TlbEntry::unserialize(Checkpoint *cp, const std::string &section)
{
+ UNSERIALIZE_SCALAR(paddr);
+ UNSERIALIZE_SCALAR(vaddr);
+ UNSERIALIZE_SCALAR(size);
+ UNSERIALIZE_SCALAR(writable);
+ UNSERIALIZE_SCALAR(user);
+ UNSERIALIZE_SCALAR(uncacheable);
+ UNSERIALIZE_SCALAR(global);
+ UNSERIALIZE_SCALAR(patBit);
+ UNSERIALIZE_SCALAR(noExec);
}
}