From 9b501e0c9e260629c199bda02d7bd540f899f232 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 11:14:16 +0100 Subject: [PATCH] bug found in pseudocode reader when assembly code has zero args --- src/soc/decoder/pseudo/pagereader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2