From: Dmitry Selyutin Date: Sat, 2 Oct 2021 09:18:34 +0000 (+0000) Subject: decoder/helpers: introduce EXTSXL helper X-Git-Tag: sv_maxu_works-initial~781 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82e11d5e4db5c31fb34750ab49d86865ea70db55;p=openpower-isa.git decoder/helpers: introduce EXTSXL helper https://libre-soc.org/openpower/sv/svp64/extsxl --- diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index be6ab496..8caa1068 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -457,6 +457,9 @@ class ISACallerHelper: # SelectableInt already takes care of masking out the bits return SelectableInt(value.value, self.XLEN) + def EXTSXL(self, value, bits): + return SelectableInt(exts(value.value, bits), self.XLEN) + def __getattr__(self, attr): try: return globals()[attr]