From a4cfa47937ae88f38bcdef3cb35e42153d3566b6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 15 May 2023 12:46:29 +0100 Subject: [PATCH] bug in power_insn.py where record.svp64 is None (??) --- src/openpower/decoder/power_insn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2