Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/7348

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

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
---
M src/arch/arm/ArmTLB.py
M src/arch/power/PowerTLB.py
2 files changed, 5 insertions(+), 2 deletions(-)



diff --git a/src/arch/arm/ArmTLB.py b/src/arch/arm/ArmTLB.py
index b3f711d..4cac944 100644
--- a/src/arch/arm/ArmTLB.py
+++ b/src/arch/arm/ArmTLB.py
@@ -41,6 +41,7 @@
 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 @@

     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"
diff --git a/src/arch/power/PowerTLB.py b/src/arch/power/PowerTLB.py
index ae6503a..b12c5a8 100644
--- a/src/arch/power/PowerTLB.py
+++ b/src/arch/power/PowerTLB.py
@@ -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'

--
To view, visit https://gem5-review.googlesource.com/7348
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I05115cc5515f745fdeb85e4dea8eded613647e40
Gerrit-Change-Number: 7348
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to