]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sparc: Treat the version field in the FPU control word as reserved
authorDaniel Cederman <cederman@gaisler.com>
Mon, 19 Feb 2024 13:55:50 +0000 (10:55 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 19 Feb 2024 13:55:50 +0000 (10:55 -0300)
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 <cederman@gaisler.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/sparc/fpu/fpu_control.h

index 48368a7ce1fc1282a068e5414ce141f63ae8ba09..fa11b2ba6ecb1518045f56e66c8eea0a1a989994 100644 (file)
@@ -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 */