From: Dmitry Selyutin Date: Wed, 29 Sep 2021 11:50:36 +0000 (+0000) Subject: isa/caller: initialize helper and redirect XLEN X-Git-Tag: sv_maxu_works-initial~800 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83762ad17c742c6194a4e01958dceff6f6aada55;p=openpower-isa.git isa/caller: initialize helper and redirect XLEN --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index e330fb28..36e3c732 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -699,6 +699,12 @@ class ISACaller(ISACallerHelper, ISAFPHelpers): self.decoder = decoder2.dec self.dec2 = decoder2 + super().__init__(XLEN=self.namespace["XLEN"]) + + @property + def XLEN(self): + return self.namespace["XLEN"] + def call_trap(self, trap_addr, trap_bit): """calls TRAP and sets up NIA to the new execution location. next instruction will begin at trap_addr.