From: Luke Kenneth Casson Leighton Date: Mon, 15 May 2023 11:46:29 +0000 (+0100) Subject: bug in power_insn.py where record.svp64 is None (??) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8da53c70a817c35b5646d637ce2c75a73174e767;p=openpower-isa.git bug in power_insn.py where record.svp64 is None (??) --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index a445ed5e..8cb54c4d 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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