From 3848bb6c6ba101febd690982cf239d00e7406586 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 4 Dec 2021 17:47:03 +0000 Subject: [PATCH] enable MMU in SimRunner if requested. now HDL and ISACaller run MMU --- src/openpower/test/runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/runner.py b/src/openpower/test/runner.py index 089ac4f7..5d68ec74 100644 --- a/src/openpower/test/runner.py +++ b/src/openpower/test/runner.py @@ -42,6 +42,7 @@ class SimRunner(StateRunner): super().__init__("sim", SimRunner) self.dut = dut + self.mmu = pspec.mmu == True regreduce_en = pspec.regreduce_en == True self.simdec2 = simdec2 = PowerDecode2(None, regreduce_en=regreduce_en) m.submodules.simdec2 = simdec2 # pain in the neck @@ -64,7 +65,8 @@ class SimRunner(StateRunner): initial_insns=gen, respect_pc=True, disassembly=insncode, bigendian=bigendian, - initial_svstate=test.svstate) + initial_svstate=test.svstate, + mmu=self.mmu) # run the loop of the instructions on the current test index = sim.pc.CIA.value//4 -- 2.30.2