fix Bug 607 - unnecessary code added related to MMU in PowerDecoder2
authorTobias Platen <tplaten@posteo.de>
Sun, 28 Feb 2021 11:25:51 +0000 (12:25 +0100)
committerTobias Platen <tplaten@posteo.de>
Sun, 28 Feb 2021 11:25:51 +0000 (12:25 +0100)
src/soc/decoder/power_decoder2.py

index 7550afbd243005f5fa4beb147e174360cb2d7c54..4cee7ab7c903faeef3416db3f530ed2a10faed98 100644 (file)
@@ -917,16 +917,8 @@ class PowerDecodeSubset(Elaboratable):
 
         # set up instruction type
         # no op: defaults to OP_ILLEGAL
-        if self.fn_name=="MMU":
-            # mmu is special case: needs SPR opcode as well
-            mmu0 = self.mmu0_spr_dec
-            with m.If(((mmu0.dec.op.internal_op == MicrOp.OP_MTSPR) |
-                       (mmu0.dec.op.internal_op == MicrOp.OP_MFSPR))):
-                comb += self.do_copy("insn_type", mmu0.op_get("internal_op"))
-            with m.Else():
-                comb += self.do_copy("insn_type", self.op_get("internal_op"))
-        else:
-            comb += self.do_copy("insn_type", self.op_get("internal_op"))
+        # FIX https://bugs.libre-soc.org/show_bug.cgi?id=607
+        comb += self.do_copy("insn_type", self.op_get("internal_op"))
 
         # function unit for decoded instruction: requires minor redirect
         # for SPR set/get