From b6e90f790ac13cfb3408c7ffcafd5182e22752ad Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 7 Apr 2020 19:13:38 +0100 Subject: [PATCH] add "undefined" to namespace --- src/soc/decoder/isa/caller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 6000786f..8a4da033 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -150,12 +150,16 @@ class ISACaller: # create CR then allow portions of it to be "selectable" (below) self.cr = SelectableInt(0, 32) + # "undefined", just set to variable-bit-width int (use exts "max") + self.undefined = SelectableInt(0, 256) # TODO, not hard-code 256! + self.namespace = {'GPR': self.gpr, 'MEM': self.mem, 'memassign': self.memassign, 'NIA': self.pc.NIA, 'CIA': self.pc.CIA, 'CR': self.cr, + 'undefined': self.undefined, } # field-selectable versions of Condition Register TODO check bitranges? -- 2.30.2