From ee52e2a6c56892c88c762c132743fb7a71490ecf Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 21 May 2023 12:17:39 +0100 Subject: [PATCH] explicitly update FPSCR from list of return results --- src/openpower/decoder/isa/caller.py | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.30.2