From: Luke Kenneth Casson Leighton Date: Sun, 21 May 2023 11:17:39 +0000 (+0100) Subject: explicitly update FPSCR from list of return results X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20cf6adbcb6800f5d9e15c59a5f7e280ebef1352;p=openpower-isa.git explicitly update FPSCR from list of return results --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index b65d5e59..263608c3 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -2453,6 +2453,11 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): return if isinstance(output, int): output = SelectableInt(output, EFFECTIVELY_UNLIMITED) + # write FPSCR + if name in ['FPSCR', ]: + log("write FPSCR 0x%x" % (output.value)) + self.FPSCR.eq(output) + return # write carry flags if name in ['CA', 'CA32']: if carry_en: