diff options
Diffstat (limited to 'src/arch/mips')
-rw-r--r-- | src/arch/mips/tlb.cc | 6 | ||||
-rw-r--r-- | src/arch/mips/tlb.hh | 11 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/arch/mips/tlb.cc b/src/arch/mips/tlb.cc index 41a26aba1..b644ae18d 100644 --- a/src/arch/mips/tlb.cc +++ b/src/arch/mips/tlb.cc @@ -31,8 +31,6 @@ #include <cstring> #include "arch/mips/tlb.hh" -#include "params/MipsDTB.hh" -#include "params/MipsITB.hh" namespace MipsISA { Fault @@ -69,11 +67,11 @@ namespace MipsISA { MipsISA::ITB * MipsITBParams::create() { - return new MipsISA::ITB(name); + return new MipsISA::ITB(this); } MipsISA::DTB * MipsDTBParams::create() { - return new MipsISA::DTB(name); + return new MipsISA::DTB(this); } diff --git a/src/arch/mips/tlb.hh b/src/arch/mips/tlb.hh index 682aa7654..78b4af94d 100644 --- a/src/arch/mips/tlb.hh +++ b/src/arch/mips/tlb.hh @@ -31,6 +31,8 @@ #ifndef __ARCH_MIPS_TLB_HH__ #define __ARCH_MIPS_TLB_HH__ +#include "params/MipsDTB.hh" +#include "params/MipsITB.hh" #include "sim/tlb.hh" namespace MipsISA @@ -48,7 +50,8 @@ namespace MipsISA class TLB : public GenericTLB { public: - TLB(const std::string &name) : GenericTLB(name) + typedef MipsTLBParams Params; + TLB(const Params *p) : GenericTLB(p) {} Fault translate(RequestPtr req, ThreadContext *tc, bool=false); @@ -57,14 +60,16 @@ namespace MipsISA class ITB : public TLB { public: - ITB(const std::string &name) : TLB(name) + typedef MipsITBParams Params; + ITB(const Params *p) : TLB(p) {} }; class DTB : public TLB { public: - DTB(const std::string &name) : TLB(name) + typedef MipsDTBParams Params; + DTB(const Params *p) : TLB(p) {} }; }; |