From 20cf6adbcb6800f5d9e15c59a5f7e280ebef1352 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