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>
pull/429/head
Paul Mackerras 10 months ago committed by GitHub
parent af2d6e268e
commit 18911455c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save