From patchwork Fri Jan 12 09:26:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Cederman X-Patchwork-Id: 83970 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C4D1F3858298 for ; Fri, 12 Jan 2024 09:27:55 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) by sourceware.org (Postfix) with ESMTPS id 87FD5385828A for ; Fri, 12 Jan 2024 09:26:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87FD5385828A Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gaisler.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 87FD5385828A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=94.231.106.210 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705051608; cv=none; b=b7FeEnhZZUyyHodmnTGCnd5OvD1Etn0BaIXcC2LBes98TKe0XOqg8wPsgFw+TJcIXY5gwOHqhPSDCxQBYKq583KLNaCf0V0mnSOKMb/F3haAUzuizaTHy0SpSalzj5Aqy4An94vUY5VHUWd3XY7tSUzoxFOd8o7aPXfmp9Q+BDk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705051608; c=relaxed/simple; bh=NZC6+R0tA+P4gxs1JLy0LZKmhEmjIRPiZD6VdTu1C8s=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=n1wRq4+nlMeLbGsPE1nFr6hCcCXYgrifRPulNlMC3HcmCTq3he6Bu6S+ikC64BU7bIgrShz0+TWbvrc+BqeuUHT8q6kFJK3YXpv49wTitMDH2P1Y4YmFjW+OUJLNLKpzQkR3IqxaDZj/6SdLCJAm/dDNsIoDukGOCh1L5idsNY0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4TBGPw5H9pz680B; Fri, 12 Jan 2024 10:26:44 +0100 (CET) Received: from cederman.got.gaisler.com (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) by smtp.simply.com (Simply.com) with ESMTPA id 4TBGPw39fCz67wy; Fri, 12 Jan 2024 10:26:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=unoeuro; t=1705051604; bh=0PC9aH5C8FfNUiP5ENRO/F+Cj3+H/J7ijjgw6TYar3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fUG5omRuP3VuZpiwhUx/u9HZq2ilAbJNRZD/hvmm3ajMPeu+g2VvA9UEtvZs9mrAt JnW+ygVLdHTVGb0h3brbTiDwc0Jd5LkTDCfvmuWCr/VPz1OTMPqwNmUplSBn6rfIT2 uzvujDiJ1XYDKGRy89EUsF8zYkcD2eEUuE7PSIEQ= From: Daniel Cederman To: libc-alpha@sourceware.org Cc: daniel@gaisler.com, andreas@gaisler.com Subject: [PATCH] sparc: Treat the version field in the FPU control word as reserved Date: Fri, 12 Jan 2024 10:26:26 +0100 Message-Id: <20240112092628.2464455-4-cederman@gaisler.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240112092628.2464455-1-cederman@gaisler.com> References: <20240112092628.2464455-1-cederman@gaisler.com> MIME-Version: 1.0 X-Spam-Status: No, score=-15.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org 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 --- 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 9313743f86..36a2bf5d07 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 */