From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 10:14:16 +0000 (+0100) Subject: bug found in pseudocode reader when assembly code has zero args X-Git-Tag: semi_working_ecp5~587 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b501e0c9e260629c199bda02d7bd540f899f232;p=soc.git bug found in pseudocode reader when assembly code has zero args --- diff --git a/src/soc/decoder/pseudo/pagereader.py b/src/soc/decoder/pseudo/pagereader.py index 6b25b54b..4097e691 100644 --- a/src/soc/decoder/pseudo/pagereader.py +++ b/src/soc/decoder/pseudo/pagereader.py @@ -252,7 +252,8 @@ class ISA: opcode, regs = o[0], o[1:] op = copy(d) op['regs'] = regs - regs[0] = regs[0].split(",") + if len(regs) != 0: + regs[0] = regs[0].split(",") op['opcode'] = opcode self.instr[opcode] = Ops(**op)