from openpower.decoder.selectable_int import selectltu as ltu
from openpower.decoder.selectable_int import selectgtu as gtu
from openpower.decoder.selectable_int import check_extsign
+from openpower.fpscr import FPSCRState
from openpower.util import log
import math
def XLEN(self):
return self.__XLEN
+ @property
+ def FPSCR(self):
+ # fallback for when not used through ISACaller
+ # needed for tests that use DOUBLE2SINGLE without using ISACaller
+ self.__dict__["FPSCR"] = retval = FPSCRState()
+ return retval
+
def EXTZXL(self, value, bits=None):
if bits is None:
bits = self.XLEN
def XLEN(self):
return self.namespace["XLEN"]
+ @property
+ def FPSCR(self):
+ return self.fpscr
+
def call_trap(self, trap_addr, trap_bit):
"""calls TRAP and sets up NIA to the new execution location.
next instruction will begin at trap_addr.