arm64: Expand HWCAP2 to be 64 bit

There are more than 32 arm64 HWCAP2 values. Expand the macros to
include leading zeros and mark them as unsigned long.

Reviewed by:	manu, imp, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D42378

(cherry picked from commit 0f0938800989dbf84a56c370db0b9379ee730a39)
This commit is contained in:
Andrew Turner 2023-10-27 11:24:55 +01:00
parent 082bc38093
commit 0cdf69c105

View file

@ -133,24 +133,24 @@ __ElfType(Auxinfo);
#define HWCAP_PACG 0x80000000
/* HWCAP2 */
#define HWCAP2_DCPODP 0x00000001
#define HWCAP2_SVE2 0x00000002
#define HWCAP2_SVEAES 0x00000004
#define HWCAP2_SVEPMULL 0x00000008
#define HWCAP2_SVEBITPERM 0x00000010
#define HWCAP2_SVESHA3 0x00000020
#define HWCAP2_SVESM4 0x00000040
#define HWCAP2_FLAGM2 0x00000080
#define HWCAP2_FRINT 0x00000100
#define HWCAP2_SVEI8MM 0x00000200
#define HWCAP2_SVEF32MM 0x00000400
#define HWCAP2_SVEF64MM 0x00000800
#define HWCAP2_SVEBF16 0x00001000
#define HWCAP2_I8MM 0x00002000
#define HWCAP2_BF16 0x00004000
#define HWCAP2_DGH 0x00008000
#define HWCAP2_RNG 0x00010000
#define HWCAP2_BTI 0x00020000
#define HWCAP2_DCPODP 0x0000000000000001ul
#define HWCAP2_SVE2 0x0000000000000002ul
#define HWCAP2_SVEAES 0x0000000000000004ul
#define HWCAP2_SVEPMULL 0x0000000000000008ul
#define HWCAP2_SVEBITPERM 0x0000000000000010ul
#define HWCAP2_SVESHA3 0x0000000000000020ul
#define HWCAP2_SVESM4 0x0000000000000040ul
#define HWCAP2_FLAGM2 0x0000000000000080ul
#define HWCAP2_FRINT 0x0000000000000100ul
#define HWCAP2_SVEI8MM 0x0000000000000200ul
#define HWCAP2_SVEF32MM 0x0000000000000400ul
#define HWCAP2_SVEF64MM 0x0000000000000800ul
#define HWCAP2_SVEBF16 0x0000000000001000ul
#define HWCAP2_I8MM 0x0000000000002000ul
#define HWCAP2_BF16 0x0000000000004000ul
#define HWCAP2_DGH 0x0000000000008000ul
#define HWCAP2_RNG 0x0000000000010000ul
#define HWCAP2_BTI 0x0000000000020000ul
#ifdef COMPAT_FREEBSD32
/* ARM HWCAP */