From d8f94e2e7b838fb9ad18ff31fc47ccb703ac4f53 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 1 May 2021 14:16:20 +0100 Subject: [PATCH] use new AllFunctionUnits.get_fu function --- src/soc/simple/test/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index bb8cb93d..2f588f26 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -41,7 +41,7 @@ from openpower.util import spr_to_fast_reg mmu_sprs = ["PRTBL", "DSISR", "DAR", "PIDR"] def set_mmu_spr(name, i, val, core): #important keep pep8 formatting - fsm = core.fus.fus["mmu0"].alu + fsm = core.fus.get_fu("mmu0").alu yield fsm.mmu.l_in.mtspr.eq(1) yield fsm.mmu.l_in.sprn.eq(i) yield fsm.mmu.l_in.rs.eq(val) -- 2.30.2