From 5a410277fd9141e0567890684247ecc61145d25e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 5 Apr 2020 17:43:14 +0100 Subject: [PATCH] add SPR rework from SPR(x) to SPR[x] --- src/soc/decoder/pseudo/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.30.2