bug in power_insn.py where record.svp64 is None (??)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 15 May 2023 11:46:29 +0000 (12:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 15 May 2023 11:46:29 +0000 (12:46 +0100)
src/openpower/decoder/power_insn.py

index a445ed5e570ca7ba4c0e233a2d98508131398a39..8cb54c4dff848ba74a67cfc1c6459e62225246a1 100644 (file)
@@ -1807,7 +1807,9 @@ class WordInstruction(Instruction):
         # awful temporary hack: workaround for ld-update
         # https://bugs.libre-soc.org/show_bug.cgi?id=1056#c2
         # XXX TODO must check that *EXTENDED* RA != extended-RT
-        if record.mode == _SVMode.LDST_IMM and 'u' in record.name:
+        if (record.svp64 is not None and
+           record.mode == _SVMode.LDST_IMM and
+           'u' in record.name):
             yield f"{blob}.long 0x{int(self):08x}"
             return