From 7805271ffacde69db51c66e9028d438bb06dfc2e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 24 May 2023 13:01:51 +0100 Subject: [PATCH] note on FP Exception about DDFF VLi=0/1 --- src/openpower/decoder/isa/caller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 714f274a..c02db670 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -2200,6 +2200,9 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): chk = rc_en or is_cr ffirst_hit = (yield from self.check_ffirst(info, chk, srcstep)) + # check if a FP Exception occurred. TODO for DD-FFirst, check VLi + # and raise the exception *after* if VLi=1 but if VLi=0 then + # truncate and make the exception "disappear". if self.FPSCR.FEX and (self.msr[MSRb.FE0] or self.msr[MSRb.FE1]): self.call_trap(0x700, PIb.FP) return -- 2.30.2