summaryrefslogtreecommitdiff
path: root/src/cpu/BaseCPU.py
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-15 21:20:39 -0700
committerGabe Black <gabeblack@google.com>2019-10-18 21:51:53 +0000
commit52d06fd655d36ac4a8ae09934e091cf2bacf578f (patch)
treefc2c6c2b5fa6ab309c7611caa44354edded33294 /src/cpu/BaseCPU.py
parentc75d185d8ada4345ac3323b6603fedc4a79c94cc (diff)
downloadgem5-52d06fd655d36ac4a8ae09934e091cf2bacf578f.tar.xz
cpu: Turn the stage 2 ARM MMUs from params to children.
These aren't referred to in the C++, so there's no reason for them to be parameters. By making them children, they can still be modified, replaced wholesale, or even replaced by an entirely different object to, for instance, mask them when they're not needed. Change-Id: Ic7f144a3cd3d1fca12fec220918aa72af885f61c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21839 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/cpu/BaseCPU.py')
-rw-r--r--src/cpu/BaseCPU.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/BaseCPU.py b/src/cpu/BaseCPU.py
index 85e37776e..143ee9224 100644
--- a/src/cpu/BaseCPU.py
+++ b/src/cpu/BaseCPU.py
@@ -182,8 +182,8 @@ class BaseCPU(ClockedObject):
dtb = Param.BaseTLB(ArchDTB(), "Data TLB")
itb = Param.BaseTLB(ArchITB(), "Instruction TLB")
if buildEnv['TARGET_ISA'] == 'arm':
- istage2_mmu = Param.ArmStage2MMU(ArmStage2IMMU(), "Stage 2 trans")
- dstage2_mmu = Param.ArmStage2MMU(ArmStage2DMMU(), "Stage 2 trans")
+ istage2_mmu = ArmStage2IMMU()
+ dstage2_mmu = ArmStage2DMMU()
elif buildEnv['TARGET_ISA'] == 'power':
UnifiedTLB = Param.Bool(True, "Is this a Unified TLB?")
interrupts = ArchInterruptsParam([], "Interrupt Controller")