From: Luke Kenneth Casson Leighton Date: Sat, 1 May 2021 13:16:20 +0000 (+0100) Subject: use new AllFunctionUnits.get_fu function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8f94e2e7b838fb9ad18ff31fc47ccb703ac4f53;p=soc.git use new AllFunctionUnits.get_fu function --- 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)