From: Luke Kenneth Casson Leighton Date: Tue, 7 Apr 2020 18:13:38 +0000 (+0100) Subject: add "undefined" to namespace X-Git-Tag: div_pipeline~1435^2~41 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6e90f790ac13cfb3408c7ffcafd5182e22752ad;p=soc.git add "undefined" to namespace --- 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?