arm, power: Make the python TLB simobjects inherit from BaseTLB.

These were still inheriting from SimObject instead of BaseTLB, making
them incompatible with parameters which expect a BaseTLB.

Change-Id: I05115cc5515f745fdeb85e4dea8eded613647e40
Reviewed-on: https://gem5-review.googlesource.com/7348
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
Gabe Black
2018-01-08 19:07:21 -08:00
parent ad0056d2e8
commit f96e542dd8
2 changed files with 5 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ from m5.SimObject import SimObject
from m5.params import *
from m5.proxy import *
from MemObject import MemObject
from BaseTLB import BaseTLB
# Basic stage 1 translation objects
class ArmTableWalker(MemObject):
@@ -59,7 +60,7 @@ class ArmTableWalker(MemObject):
sys = Param.System(Parent.any, "system object parameter")
class ArmTLB(SimObject):
class ArmTLB(BaseTLB):
type = 'ArmTLB'
cxx_class = 'ArmISA::TLB'
cxx_header = "arch/arm/tlb.hh"

View File

@@ -31,7 +31,9 @@
from m5.SimObject import SimObject
from m5.params import *
class PowerTLB(SimObject):
from BaseTLB import BaseTLB
class PowerTLB(BaseTLB):
type = 'PowerTLB'
cxx_class = 'PowerISA::TLB'
cxx_header = 'arch/power/tlb.hh'