From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 19:44:35 +0000 (+0100) Subject: bug in isa parser not recognising MSR as declared variable X-Git-Tag: semi_working_ecp5~343 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b635fd5c2822f7c54675b5a55df15908a99b1d5a;p=soc.git bug in isa parser not recognising MSR as declared variable --- diff --git a/src/soc/decoder/pseudo/parser.py b/src/soc/decoder/pseudo/parser.py index 3d75fbb0..b2197371 100644 --- a/src/soc/decoder/pseudo/parser.py +++ b/src/soc/decoder/pseudo/parser.py @@ -395,7 +395,8 @@ class PowerParser: if name in self.gprs: # add to list of uninitialised self.uninit_regs.add(name) - autoassign = name not in self.declared_vars + autoassign = (name not in self.declared_vars and + name not in self.special_regs) elif isinstance(p[1], ast.Call) and p[1].func.id in ['GPR', 'SPR']: print(astor.dump_tree(p[1])) # replace GPR(x) with GPR[x]