isa/caller: initialize helper and redirect XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 29 Sep 2021 11:50:36 +0000 (11:50 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 29 Sep 2021 19:32:54 +0000 (19:32 +0000)
src/openpower/decoder/isa/caller.py

index e330fb28e03374732b96c4a8635834d19c90991c..36e3c732d55c7c705b40d4456a299af3807eb789 100644 (file)
@@ -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.