From 791f66e4f80692445da35c86daf732dba182073b Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 25 Aug 2022 22:48:17 +0300 Subject: [PATCH] selectable_int: support FSI integer conversion --- src/openpower/decoder/selectable_int.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openpower/decoder/selectable_int.py b/src/openpower/decoder/selectable_int.py index 46477509..6819c5e4 100644 --- a/src/openpower/decoder/selectable_int.py +++ b/src/openpower/decoder/selectable_int.py @@ -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) -- 2.30.2