From b47e348dd57de225295e0b1d22e399d69d6aa263 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 7 Feb 2024 12:22:13 +1100 Subject: [PATCH] FPU: Fix fsel instruction to not alter FPSCR The fsel instruction is not supposed to alter FPSCR, but it was clearing FR and FI. Fix this. Signed-off-by: Paul Mackerras --- fpu.vhdl | 2 -- 1 file changed, 2 deletions(-) diff --git a/fpu.vhdl b/fpu.vhdl index afac4c0..3b5dfcb 100644 --- a/fpu.vhdl +++ b/fpu.vhdl @@ -1591,8 +1591,6 @@ begin end if; when DO_FSEL => - v.fpscr(FPSCR_FR) := '0'; - v.fpscr(FPSCR_FI) := '0'; if r.a.class = ZERO or (r.a.negative = '0' and r.a.class /= NAN) then v.opsel_a := AIN_C; v.result_sign := r.c.negative;