forward mmu sprs
authorTobias Platen <tplaten@posteo.de>
Tue, 9 Nov 2021 17:12:45 +0000 (18:12 +0100)
committerTobias Platen <tplaten@posteo.de>
Tue, 9 Nov 2021 17:12:45 +0000 (18:12 +0100)
src/openpower/decoder/power_decoder2.py

index 6db5c61511a79a22b6f0eccc570c9018a434d32e..edf2893b3dec4749822db7d926efb4eaa0eea9b2 100644 (file)
@@ -942,8 +942,8 @@ class PowerDecodeSubset(Elaboratable):
                               (spr == SPR.PIDR.value))
         # MMU must receive MMU SPRs
         with m.If(is_spr_mv & (fn == Function.SPR) & is_mmu_spr):
-            comb += self.do_copy("fn_unit", Function.NONE)
-            comb += self.do_copy("insn_type", MicrOp.OP_ILLEGAL)
+            comb += self.do_copy("fn_unit", Function.MMU)
+            comb += self.do_copy("insn_type", internal_op)
         # SPR pipe must *not* receive MMU SPRs
         with m.Elif(is_spr_mv & (fn == Function.MMU) & ~is_mmu_spr):
             comb += self.do_copy("fn_unit", Function.NONE)