# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Authors: Jaidev Patwardhan
+# Korey Sewell
from m5.SimObject import SimObject
from m5.params import *
-class MipsTLB(SimObject):
- abstract = True
- type = 'MipsTLB'
- cxx_namespace = 'MipsISA'
- cxx_class = 'TLB'
- size = Param.Int("TLB size")
-
-class MipsDTB(MipsTLB):
- type = 'MipsDTB'
- cxx_namespace = 'MipsISA'
- cxx_class = 'DTB'
- size = 64
+from BaseTLB import BaseTLB
-class MipsITB(MipsTLB):
- type = 'MipsITB'
- cxx_namespace = 'MipsISA'
- cxx_class = 'ITB'
- size = 64
-
-class MipsUTB(MipsTLB):
- type = 'MipsUTB'
- cxx_namespace = 'MipsISA'
- cxx_class = 'UTB'
- size = 64
+class MipsTLB(BaseTLB):
+ type = 'MipsTLB'
+ cxx_class = 'MipsISA::TLB'
+ cxx_header = 'arch/mips/tlb.hh'
+ size = Param.Int(64, "TLB size")