From nobody Mon Feb 19 16:45:01 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TdpL6116Fz5C9KB; Mon, 19 Feb 2024 16:45:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TdpL603m2z4b6f; Mon, 19 Feb 2024 16:45:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708361102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qwYIr8JEg++5GcfHw52ZNoalxR2QxAAL3WCmlNWUqrg=; b=s9uidh9VA/gSMYtmlEbtMbm45CAMPXCZi/zW5bylWNYDl9RH+UVOHijd35Ox4XMweJc2Z6 WyEIs3OyjM5T9hqkNI0Z+zuQG//cpigH7S7yMGH/UlA8deE2+SNLZ3C424cPZ/TcA8+YjY 3bty1uWyHelZ6SYkRFwg2SO4JtSMrIxOVV0CQ4gAvsaGqNbf1Cm43AbzLh6uZoJ4jimGHd Jr88Ghv4fZM/oBemkt5mwRhdomAGuVCpBCE9YuJe9SVtFdz3PR8EKdwQwcVPL+lxNd62uo qmhE1Yf9bIZ3JPT5dpy9b6HXs9QlEPs38NoCIRqzazCSIYJZMh72+HBeQFmWTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708361102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qwYIr8JEg++5GcfHw52ZNoalxR2QxAAL3WCmlNWUqrg=; b=SE5btQ6oq+5fUcVktCV888GowmtTLZY1kEV6gqPdH30nffg5SfF3Aat4lg1oZOAMa2Boc9 nK9IXLs1sd+05W/kXcYN4nY2JoOkUCxRaS48kD4IKiEaMPVmhR3tPNuVh3NFF1R77MOk/q 7DuDx4YI1Q8p1NjDPyiLn1gXkzubS7badhtSoXo8TOYW+ITttOmhmFiS2Lm4bygUlFpf35 HJr44YB7g/l3mi3LiyIxatC6w9H0pHsCOIvtM9cxKbpjm2+u0DEbI6m9XwIkzYL7buA7LW tsWw7xtbVp6shoTrk9sm2JA/UnKah0i+NOFg4jaS/C3Je8rEReMYKrl7kfUEgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708361102; a=rsa-sha256; cv=none; b=jMWkpHmiDYp/1dBlGcA6ubVB+9p6pE6viNrbnyFCZQ+WcHl2WTcZavzVAPEWnNTeAaZm6A NLyKFzNC07UF2WVSkwhDDhMkNxtGDUad5F1LCepoFhy1aHfZdNKK6l4QBnPmXDDHV9BLY4 EkoYP0C3sYiVVv+wiCPzem6QOKJFHZhNyk1MyOLJdpfEuHhrdGiJglqlfQ/URMj8kyvFZA jQC7F5BOoqLi6+mpDiA0Iuk9biDhwP9HxZ0Rph+pCQpawbo3DYuQsvqQcE6w16gg9O+XF7 zwperk1HCB5yvPxe4++IF3G9e7HZuuZXPX9m9izKKvc1CgEotV11z336iuKg0w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TdpL56FXXzjVV; Mon, 19 Feb 2024 16:45:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41JGj1L6094924; Mon, 19 Feb 2024 16:45:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JGj1fI094921; Mon, 19 Feb 2024 16:45:01 GMT (envelope-from git) Date: Mon, 19 Feb 2024 16:45:01 GMT Message-Id: <202402191645.41JGj1fI094921@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 9aa63df3dbe5 - stable/13 - arm64: Expand HWCAP2 to be 64 bit List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9aa63df3dbe5a043d699043087ac8c01c5f28305 Auto-Submitted: auto-generated The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=9aa63df3dbe5a043d699043087ac8c01c5f28305 commit 9aa63df3dbe5a043d699043087ac8c01c5f28305 Author: Andrew Turner AuthorDate: 2023-10-27 10:24:55 +0000 Commit: Andrew Turner CommitDate: 2024-02-19 12:43:55 +0000 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) --- sys/arm64/include/elf.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sys/arm64/include/elf.h b/sys/arm64/include/elf.h index 752c9e83ca19..81cee5700ed5 100644 --- a/sys/arm64/include/elf.h +++ b/sys/arm64/include/elf.h @@ -129,24 +129,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 */