copy over msr and rename cia to nia in PowerDecoder2
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 3 Jan 2022 14:04:06 +0000 (14:04 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 3 Jan 2022 14:04:12 +0000 (14:04 +0000)
src/openpower/decoder/power_decoder2.py

index 47114888b1cef46e367b82ed2d1a1d4019a1e28c..b8c9726e6dd6218bd77ecbfe69920688f5ec8dcb 100644 (file)
@@ -1512,7 +1512,8 @@ class PowerDecode2(PowerDecodeSubset):
             comb += self.do_copy("insn", self.dec.opcode_in, True)
             comb += self.do_copy("insn_type", MicrOp.OP_FETCH_FAILED, True)
             comb += self.do_copy("fn_unit", Function.MMU, True)
-            comb += self.do_copy("nia", self.state.pc, True)  # PC
+            comb += self.do_copy("cia", self.state.pc, True)  # PC
+            comb += self.do_copy("msr", self.state.msr, True)  # MSR
             # special override on internal_op, due to being a "fake" op
             comb += self.dec.op.internal_op.eq(MicrOp.OP_FETCH_FAILED)