MMU LOOKUP for fetch failed, priv mode is inversion of MSR.PR
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 14 Dec 2021 00:46:53 +0000 (00:46 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 14 Dec 2021 00:46:53 +0000 (00:46 +0000)
src/soc/fu/mmu/fsm.py

index 7f0b81b4a07665e4763b943caf1f2253221ebd24..752f7ef60a53add90e971045166dfe58b2f62945 100644 (file)
@@ -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()