Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 23:21:56 +0000 (UTC)
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366271 - head/sys/arm64/arm64
Message-ID:  <202009292321.08TNLuNu087201@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mhorne
Date: Tue Sep 29 23:21:56 2020
New Revision: 366271
URL: https://svnweb.freebsd.org/changeset/base/366271

Log:
  arm64: set the correct HWCAP
  
  This appears to be a typo. The AdvSIMD field encodes support for
  half-precision floating point SIMD instructions, which corresponds to
  HWCAP_ASIMDHP, not HWCAP_ASIMDDP.
  
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm64/arm64/identcpu.c

Modified: head/sys/arm64/arm64/identcpu.c
==============================================================================
--- head/sys/arm64/arm64/identcpu.c	Tue Sep 29 22:30:15 2020	(r366270)
+++ head/sys/arm64/arm64/identcpu.c	Tue Sep 29 23:21:56 2020	(r366271)
@@ -1295,7 +1295,7 @@ parse_cpu_features_hwcap(void)
 		hwcap |= HWCAP_ASIMD;
 		break;
 	case ID_AA64PFR0_AdvSIMD_HP:
-		hwcap |= HWCAP_ASIMD | HWCAP_ASIMDDP;
+		hwcap |= HWCAP_ASIMD | HWCAP_ASIMDHP;
 		break;
 	default:
 		break;



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