From: Dmitry Selyutin Date: Thu, 25 Aug 2022 19:48:17 +0000 (+0300) Subject: selectable_int: support FSI integer conversion X-Git-Tag: sv_maxu_works-initial~28 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=791f66e4f80692445da35c86daf732dba182073b;p=openpower-isa.git selectable_int: support FSI integer conversion --- 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)