From: Luke Kenneth Casson Leighton Date: Thu, 24 Jun 2021 14:24:11 +0000 (+0100) Subject: use get_op on "internal_op" instead of self.dec.op in PowerDecoder2 X-Git-Tag: xlen-bcd~395 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c70a3b45407507f44f4e5637854ead830a0e30a;p=openpower-isa.git use get_op on "internal_op" instead of self.dec.op in PowerDecoder2 --- diff --git a/src/openpower/decoder/power_decoder2.py b/src/openpower/decoder/power_decoder2.py index d15eccc4..10906ede 100644 --- a/src/openpower/decoder/power_decoder2.py +++ b/src/openpower/decoder/power_decoder2.py @@ -1337,11 +1337,12 @@ class PowerDecode2(PowerDecodeSubset): # sigh this is exactly the sort of thing for which the # decoder is designed to not need. MTSPR, MFSPR and others need # access to the XER bits. however setting e.oe is not appropriate - with m.If(op.internal_op == MicrOp.OP_MFSPR): + internal_op = self.op_get("internal_op") + with m.If(internal_op == MicrOp.OP_MFSPR): comb += e.xer_in.eq(0b111) # SO, CA, OV - with m.If(op.internal_op == MicrOp.OP_CMP): + with m.If(internal_op == MicrOp.OP_CMP): comb += e.xer_in.eq(1<