summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-15 21:48:31 -0700
committerGabe Black <gabeblack@google.com>2019-10-19 01:49:55 +0000
commit9d3b9e96c56386ee6539657c21cba95e118e576a (patch)
tree2a6fc39778e534c827f048320fcb89a75e8f9dfb /src/arch/arm
parentb6ef760ebb39e813526ba7abc3e05d7f449c9e32 (diff)
downloadgem5-9d3b9e96c56386ee6539657c21cba95e118e576a.tar.xz
cpu,arm: Push the stage 2 MMUs out of the CPU into the TLBs.
This regularizes the TLB setup in the CPU so that ARM is no longer a special case with extra objects. Change-Id: I739b82578ff74f8f9777cd7e34cd5227b47b186c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21842 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm')
-rw-r--r--src/arch/arm/ArmTLB.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/arch/arm/ArmTLB.py b/src/arch/arm/ArmTLB.py
index 4a6b3e7cd..d2334630e 100644
--- a/src/arch/arm/ArmTLB.py
+++ b/src/arch/arm/ArmTLB.py
@@ -90,11 +90,17 @@ class ArmStage2MMU(SimObject):
class ArmStage2IMMU(ArmStage2MMU):
# We rely on the itb being a parameter of the CPU, and get the
# appropriate object that way
- tlb = Parent.itb
+ tlb = Parent.any
stage2_tlb = ArmStage2TLB()
class ArmStage2DMMU(ArmStage2MMU):
# We rely on the dtb being a parameter of the CPU, and get the
# appropriate object that way
- tlb = Parent.dtb
+ tlb = Parent.any
stage2_tlb = ArmStage2TLB()
+
+class ArmITB(ArmTLB):
+ stage2_mmu = ArmStage2IMMU()
+
+class ArmDTB(ArmTLB):
+ stage2_mmu = ArmStage2DMMU()