From: Daniel Cederman Date: Mon, 19 Feb 2024 13:55:50 +0000 (-0300) Subject: sparc: Treat the version field in the FPU control word as reserved X-Git-Tag: glibc-2.40~399 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4106db1d6f80e64dcc8818cc07aacd7fabb03e;p=thirdparty%2Fglibc.git sparc: Treat the version field in the FPU control word as reserved The FSR version field is read-only and might be non-zero. This allows math/test-fpucw* to correctly pass when the version is non-zero. Signed-off-by: Daniel Cederman Reviewed-by: Adhemerval Zanella --- diff --git a/sysdeps/sparc/fpu/fpu_control.h b/sysdeps/sparc/fpu/fpu_control.h index 48368a7ce1f..fa11b2ba6ec 100644 --- a/sysdeps/sparc/fpu/fpu_control.h +++ b/sysdeps/sparc/fpu/fpu_control.h @@ -42,7 +42,7 @@ #define _FPU_RC_ZERO 0x40000000 #define _FPU_RC_NEAREST 0x0 /* RECOMMENDED */ -#define _FPU_RESERVED 0x30300000 /* Reserved bits in cw */ +#define _FPU_RESERVED 0x303e0000 /* Reserved bits in cw */ /* Now two recommended cw */