From 39a4da28e81d0948e7984cc772aa02f3f638cd2d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 31 Mar 2020 14:03:37 +0100 Subject: [PATCH] add list of gprs which need to access GPR functions (code-rewrite) --- src/soc/decoder/power_pseudo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/decoder/power_pseudo.py b/src/soc/decoder/power_pseudo.py index d6436b16..5e9c5179 100644 --- a/src/soc/decoder/power_pseudo.py +++ b/src/soc/decoder/power_pseudo.py @@ -468,6 +468,11 @@ class IndentLexer(PowerLexer): class PowerParser: + def __init__(self): + self.gprs = {} + for rname in ['RA', 'RB', 'RC', 'RT']: + self.gprs[rname] = None + # The grammar comments come from Python's Grammar/Grammar file ## NB: compound_stmt in single_input is followed by extra NEWLINE! -- 2.30.2