From 18911455c6cd7fca3b98af54e95daeeb2f57041d Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 8 Feb 2024 15:42:00 +1100 Subject: [PATCH] FPU: Fix fsel instruction to not alter FPSCR (#426) 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;