From: Luke Kenneth Casson Leighton Date: Sun, 5 Apr 2020 16:43:14 +0000 (+0100) Subject: add SPR rework from SPR(x) to SPR[x] X-Git-Tag: div_pipeline~1485 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a410277fd9141e0567890684247ecc61145d25e;p=soc.git add SPR rework from SPR(x) to SPR[x] --- diff --git a/src/soc/decoder/pseudo/parser.py b/src/soc/decoder/pseudo/parser.py index 03d56d5d..70b154e7 100644 --- a/src/soc/decoder/pseudo/parser.py +++ b/src/soc/decoder/pseudo/parser.py @@ -348,7 +348,7 @@ class PowerParser: if name in self.gprs: # add to list of uninitialised self.uninit_regs.add(name) - elif isinstance(p[1], ast.Call) and p[1].func.id == 'GPR': + 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] idx = p[1].args[0]