From 09899b55059c0aee70d31b4a09b0a05305d43c70 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 25 Sep 2021 16:29:45 +0000 Subject: [PATCH] decoder/helpers.py: redirect helper class calls --- src/openpower/decoder/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index 2adc714b..43fc24e5 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -1,5 +1,6 @@ import unittest import struct +import sys from openpower.decoder.selectable_int import (SelectableInt, onebit, selectconcat) from nmutil.divmod import trunc_divs, trunc_rems @@ -461,6 +462,9 @@ class ISACallerHelper: def XLEN(self): return self.__XLEN + def __getattr__(self, attr): + return getattr(sys.modules[ISACallerHelper.__module__], attr) + if __name__ == '__main__': log(SelectableInt.__bases__) -- 2.30.2