From af1382bc5f865a7ba66fa1979301ad623151d6da Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 9 Oct 2020 11:51:18 +0100 Subject: [PATCH] drop in "undefined" function into ISAcaller namespace --- src/soc/decoder/isa/caller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 9252bfef..ad724a11 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -16,7 +16,7 @@ from soc.decoder.selectable_int import (FieldSelectableInt, SelectableInt, selectconcat) from soc.decoder.power_enums import (spr_dict, spr_byname, XER_bits, insns, MicrOp) -from soc.decoder.helpers import exts, gtu, ltu +from soc.decoder.helpers import exts, gtu, ltu, undefined from soc.consts import PIb, MSRb # big-endian (PowerISA versions) from collections import namedtuple @@ -336,7 +336,7 @@ class ISACaller: #self.cr = FieldSelectableInt(self._cr, list(range(32, 64))) # "undefined", just set to variable-bit-width int (use exts "max") - self.undefined = SelectableInt(0, 256) # TODO, not hard-code 256! + #self.undefined = SelectableInt(0, 256) # TODO, not hard-code 256! self.namespace = {} self.namespace.update(self.spr) @@ -348,7 +348,7 @@ class ISACaller: 'CIA': self.pc.CIA, 'CR': self.cr, 'MSR': self.msr, - 'undefined': self.undefined, + 'undefined': undefined, 'mode_is_64bit': True, 'SO': XER_bits['SO'] }) -- 2.30.2