From 83762ad17c742c6194a4e01958dceff6f6aada55 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 29 Sep 2021 11:50:36 +0000 Subject: [PATCH] isa/caller: initialize helper and redirect XLEN --- src/openpower/decoder/isa/caller.py | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.30.2