decoder/helpers.py: ISACallerHelper stub class
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sat, 25 Sep 2021 16:15:23 +0000 (16:15 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 20:06:39 +0000 (21:06 +0100)
src/openpower/decoder/helpers.py

index b1d9eb4c91c04d133d44647b59c28f98292451c3..2adc714b66a6230ef64685b26dbf034adc837dd8 100644 (file)
@@ -453,6 +453,15 @@ class HelperTests(unittest.TestCase):
         return self.assertEqual(a, b, msg)
 
 
+class ISACallerHelper:
+    def __init__(self, XLEN: int) -> None:
+        self.__XLEN = XLEN
+
+    @property
+    def XLEN(self):
+        return self.__XLEN
+
+
 if __name__ == '__main__':
     log(SelectableInt.__bases__)
     unittest.main()