From: Dmitry Selyutin Date: Sat, 25 Sep 2021 16:29:45 +0000 (+0000) Subject: decoder/helpers.py: redirect helper class calls X-Git-Tag: sv_maxu_works-initial~827 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09899b55059c0aee70d31b4a09b0a05305d43c70;p=openpower-isa.git decoder/helpers.py: redirect helper class calls --- 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__)