From: Luke Kenneth Casson Leighton Date: Tue, 14 Dec 2021 00:46:53 +0000 (+0000) Subject: MMU LOOKUP for fetch failed, priv mode is inversion of MSR.PR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26e8f778acc2828a2621a40d6f0ebbdc356a6ee1;p=soc.git MMU LOOKUP for fetch failed, priv mode is inversion of MSR.PR --- 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()