Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2021 12:53:31 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: fd860ace3bde - main - Remove the DN flag from the initial arm64 fpcr value
Message-ID:  <202109141253.18ECrVoR016500@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=fd860ace3bded96bee0e5c090a5a4d8b085b700c

commit fd860ace3bded96bee0e5c090a5a4d8b085b700c
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2021-08-25 10:05:55 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2021-09-14 12:52:48 +0000

    Remove the DN flag from the initial arm64 fpcr value
    
    This fixes software that expects NaN values to propagate.
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/arm64/include/vfp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/include/vfp.h b/sys/arm64/include/vfp.h
index 629b1b7fadf4..bee0121d9d2a 100644
--- a/sys/arm64/include/vfp.h
+++ b/sys/arm64/include/vfp.h
@@ -35,7 +35,7 @@
 #define	VFPCR_AHP		(0x04000000)	/* alt. half-precision: */
 #define	VFPCR_DN		(0x02000000)	/* default NaN enable */
 #define	VFPCR_FZ		(0x01000000)	/* flush to zero enabled */
-#define	VFPCR_INIT		VFPCR_DN	/* Default fpcr after exec */
+#define	VFPCR_INIT		0		/* Default fpcr after exec */
 
 #define	VFPCR_RMODE_OFF		22		/* rounding mode offset */
 #define	VFPCR_RMODE_MASK	(0x00c00000)	/* rounding mode mask */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109141253.18ECrVoR016500>