explicitly update FPSCR from list of return results
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 21 May 2023 11:17:39 +0000 (12:17 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:18 +0000 (19:51 +0100)
src/openpower/decoder/isa/caller.py

index b65d5e5971b8befc617a687dca53e63095fde5ba..263608c3b524ed333d6c788a02bbe250e897faac 100644 (file)
@@ -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: