From 26e8f778acc2828a2621a40d6f0ebbdc356a6ee1 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 14 Dec 2021 00:46:53 +0000 Subject: [PATCH] MMU LOOKUP for fetch failed, priv mode is inversion of MSR.PR --- src/soc/fu/mmu/fsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/fu/mmu/fsm.py b/src/soc/fu/mmu/fsm.py index 7f0b81b4..752f7ef6 100644 --- a/src/soc/fu/mmu/fsm.py +++ b/src/soc/fu/mmu/fsm.py @@ -224,7 +224,7 @@ class FSMMMUStage(ControlBase): # from accepting any other LD/ST requests. comb += valid.eq(1) # start "pulse" comb += ldst.instr_fault.eq(blip) - comb += ldst.priv_mode.eq(msr_i[MSR.PR]) + comb += ldst.priv_mode.eq(~msr_i[MSR.PR]) comb += ldst.maddr.eq(nia_i) # XXX should not access this! mmu_done_delay = Signal() -- 2.30.2