From 0478fe41dd95062c7494d40e3459df6323919cee Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 8 Dec 2025 15:03:43 +1100 Subject: [PATCH] FPU: Reset FPSCR[FR,FI] at beginning of fcfid* Otherwise a non-zero setting from a previous instruction won't get cleared. Signed-off-by: Paul Mackerras --- fpu.vhdl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fpu.vhdl b/fpu.vhdl index 515ac8e..2b5d556 100644 --- a/fpu.vhdl +++ b/fpu.vhdl @@ -1655,6 +1655,8 @@ begin rcls_op <= RCLS_SEL; re_con2 <= RECON2_UNIT; re_set_result <= '1'; + v.fpscr(FPSCR_FR) := '0'; + v.fpscr(FPSCR_FI) := '0'; if r.b.class = ZERO then arith_done := '1'; else