diff options
Diffstat (limited to 'src/arch/mips')
-rw-r--r-- | src/arch/mips/tlb.cc | 4 | ||||
-rw-r--r-- | src/arch/mips/tlb.hh | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/arch/mips/tlb.cc b/src/arch/mips/tlb.cc index b644ae18d..a911e3c0b 100644 --- a/src/arch/mips/tlb.cc +++ b/src/arch/mips/tlb.cc @@ -54,13 +54,13 @@ namespace MipsISA { void TlbEntry::serialize(std::ostream &os) { - SERIALIZE_SCALAR(pageStart); + SERIALIZE_SCALAR(_pageStart); } void TlbEntry::unserialize(Checkpoint *cp, const std::string §ion) { - UNSERIALIZE_SCALAR(pageStart); + UNSERIALIZE_SCALAR(_pageStart); } }; diff --git a/src/arch/mips/tlb.hh b/src/arch/mips/tlb.hh index 78b4af94d..cff805bef 100644 --- a/src/arch/mips/tlb.hh +++ b/src/arch/mips/tlb.hh @@ -39,9 +39,14 @@ namespace MipsISA { struct TlbEntry { - Addr pageStart; + Addr _pageStart; TlbEntry() {} - TlbEntry(Addr paddr) : pageStart(paddr) {} + TlbEntry(Addr asn, Addr vaddr, Addr paddr) : _pageStart(paddr) {} + + Addr pageStart() + { + return _pageStart; + } void serialize(std::ostream &os); void unserialize(Checkpoint *cp, const std::string §ion); |