From 7145327b2fd35d35aaf2510cae6fb3ad22488811 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 23 May 2023 20:10:18 -0700 Subject: [PATCH] ISACaller: generate FP trap --- src/openpower/decoder/isa/caller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 263608c3..714f274a 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -2200,6 +2200,10 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): chk = rc_en or is_cr ffirst_hit = (yield from self.check_ffirst(info, chk, srcstep)) + if self.FPSCR.FEX and (self.msr[MSRb.FE0] or self.msr[MSRb.FE1]): + self.call_trap(0x700, PIb.FP) + return + # any modified return results? yield from self.do_outregs_nia(asmop, ins_name, info, outs, carry_en, rc_en, ffirst_hit, ew_dst) -- 2.30.2