From 8e261f6ee07e2ccf271f8838daa372d3e2dcb2ed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 7 Apr 2020 16:54:50 +0100 Subject: [PATCH] op_fields is passed over (and excludes register names) --- src/soc/decoder/isa/caller.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 90f1d764..647e58d6 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -177,11 +177,10 @@ class ISACaller: # then "yield" fields only from op_fields rather than hard-coded # list, here. fields = self.decoder.sigforms[formname] - for name in fields._fields: - if name not in ["RA", "RB", "RT"]: - sig = getattr(fields, name) - val = yield sig - self.namespace[name] = SelectableInt(val, sig.width) + for name in op_fields: + sig = getattr(fields, name) + val = yield sig + self.namespace[name] = SelectableInt(val, sig.width) def call(self, name): # TODO, asmregs is from the spec, e.g. add RT,RA,RB -- 2.30.2