From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id F1A3F3864804; Mon, 19 Feb 2024 14:16:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1A3F3864804 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708352208; bh=qICGlj3rCtFjo7nYs8j2ABQBiIE0oO6T1aSVwFLYq0s=; h=From:To:Subject:Date:From; b=gpm0RlSaZRTpGfd3WRdODc3oh/df/mmU2To+KxT92Ew+eQBc4YS8gwaQQcNUfo3QO esd/YLnM844zUvtCFlNia/qP2fuFRZOCdfzt07SIm8u0v1T6WCs/PuPeAmdDuTy3Ya v0rieFbjl6bEEM2nv0PyR1nfGfzDhc8bWK89hkIY= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] sparc: Treat the version field in the FPU control word as reserved X-Act-Checkin: glibc X-Git-Author: Daniel Cederman X-Git-Refname: refs/heads/master X-Git-Oldrev: 88b771ab5e1169e746dbf4a990d90cffc5fa54ea X-Git-Newrev: aa4106db1d6f80e64dcc8818cc07aacd7fabb03e Message-Id: <20240219141648.F1A3F3864804@sourceware.org> Date: Mon, 19 Feb 2024 14:16:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=aa4106db1d6f80e64dcc8818cc07aacd7fabb03e commit aa4106db1d6f80e64dcc8818cc07aacd7fabb03e Author: Daniel Cederman Date: Mon Feb 19 10:55:50 2024 -0300 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: --- sysdeps/sparc/fpu/fpu_control.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */