about summary refs log tree commit diff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2024-02-19 10:55:50 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-19 10:55:50 -0300
commitaa4106db1d6f80e64dcc8818cc07aacd7fabb03e (patch)
treee88bad316331e3fd9de7788a0431dfa7e9ab96df /sysdeps/sparc
parent88b771ab5e1169e746dbf4a990d90cffc5fa54ea (diff)
downloadglibc-aa4106db1d6f80e64dcc8818cc07aacd7fabb03e.tar.gz
glibc-aa4106db1d6f80e64dcc8818cc07aacd7fabb03e.tar.xz
glibc-aa4106db1d6f80e64dcc8818cc07aacd7fabb03e.zip
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 <cederman@gaisler.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/fpu/fpu_control.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/sparc/fpu/fpu_control.h b/sysdeps/sparc/fpu/fpu_control.h
index 48368a7ce1..fa11b2ba6e 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 */