1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-09 20:18:27 +00:00

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 <paulus@ozlabs.org>
This commit is contained in:
Paul Mackerras
2024-02-08 15:42:00 +11:00
committed by GitHub
parent af2d6e268e
commit 18911455c6

View File

@@ -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;