diff options
-rw-r--r-- | src/arch/x86/pagetable_walker.hh | 2 | ||||
-rw-r--r-- | src/arch/x86/tlb.cc | 6 | ||||
-rw-r--r-- | src/arch/x86/tlb.hh | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/arch/x86/pagetable_walker.hh b/src/arch/x86/pagetable_walker.hh index d433c7b98..90f075280 100644 --- a/src/arch/x86/pagetable_walker.hh +++ b/src/arch/x86/pagetable_walker.hh @@ -80,7 +80,6 @@ namespace X86ISA friend class WalkerPort; WalkerPort port; - Port *getPort(const std::string &if_name, int idx = -1); // State to track each walk of the page table class WalkerState : public FastAlloc @@ -167,6 +166,7 @@ namespace X86ISA RequestPtr req, BaseTLB::Mode mode); Fault startFunctional(ThreadContext * _tc, Addr &addr, Addr &pageSize, BaseTLB::Mode mode); + Port *getPort(const std::string &if_name, int idx = -1); protected: // The TLB we're supposed to load. diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index ff65eb04c..456f03208 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -421,6 +421,12 @@ TLB::unserialize(Checkpoint *cp, const std::string §ion) { } +Port * +TLB::getPort() +{ + return walker->getPort("port"); +} + } // namespace X86ISA X86ISA::TLB * diff --git a/src/arch/x86/tlb.hh b/src/arch/x86/tlb.hh index 449ca19ce..a943683af 100644 --- a/src/arch/x86/tlb.hh +++ b/src/arch/x86/tlb.hh @@ -120,6 +120,8 @@ namespace X86ISA // Checkpointing virtual void serialize(std::ostream &os); virtual void unserialize(Checkpoint *cp, const std::string §ion); + + virtual Port * getPort(); }; } |