selectable_int: support FSI integer conversion
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 25 Aug 2022 19:48:17 +0000 (22:48 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 29 Aug 2022 19:38:52 +0000 (20:38 +0100)
src/openpower/decoder/selectable_int.py

index 4647750929c89d64d60e796c4287919a21bdae4b..6819c5e44a042635e01bac46ce4e7f2f7a3cd50f 100644 (file)
@@ -172,6 +172,9 @@ class FieldSelectableInt:
                 return True
         return False
 
+    def __int__(self):
+        return self.asint(msb0=True)
+
     def asint(self, msb0=False):
         res = 0
         brlen = len(self.br)