summaryrefslogtreecommitdiff
path: root/src/arch/mips/tlb.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-08-28 14:30:50 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-08-28 14:30:50 -0700
commita3367adaff66997044553cb9a746e101418afbdd (patch)
tree4a26081985724fe95e9b993e8d49994d2e65a755 /src/arch/mips/tlb.hh
parent3ab19130770e04aaede1a3582959a01bb482b96b (diff)
downloadgem5-a3367adaff66997044553cb9a746e101418afbdd.tar.xz
Address translation: De-templatize the GenericTLB class.
--HG-- extra : convert_revision : b605a90a4a1071e39f49085a839fdcd175e09fdb
Diffstat (limited to 'src/arch/mips/tlb.hh')
-rw-r--r--src/arch/mips/tlb.hh17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/arch/mips/tlb.hh b/src/arch/mips/tlb.hh
index 6025de4c0..682aa7654 100644
--- a/src/arch/mips/tlb.hh
+++ b/src/arch/mips/tlb.hh
@@ -45,17 +45,26 @@ namespace MipsISA
void unserialize(Checkpoint *cp, const std::string &section);
};
- class ITB : public GenericITB<>
+ class TLB : public GenericTLB
{
public:
- ITB(const std::string &name) : GenericITB<>(name)
+ TLB(const std::string &name) : GenericTLB(name)
+ {}
+
+ Fault translate(RequestPtr req, ThreadContext *tc, bool=false);
+ };
+
+ class ITB : public TLB
+ {
+ public:
+ ITB(const std::string &name) : TLB(name)
{}
};
- class DTB : public GenericDTB<>
+ class DTB : public TLB
{
public:
- DTB(const std::string &name) : GenericDTB<>(name)
+ DTB(const std::string &name) : TLB(name)
{}
};
};