Skip to content

Commit 0c18c88

Browse files
cpu: add DIT option and hwcap DIT support
Follow-up to https://go.dev/cl/597377, add a option for DIT so it can be set via GODEBUG, and add hwcap support for Linux. Change-Id: Ib094b520edea9c099d37f121b09d02b31644a433 Reviewed-on: https://go-review.googlesource.com/c/sys/+/598719 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
1 parent dce4e64 commit 0c18c88

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cpu/cpu_arm64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func initOptions() {
3838
{Name: "dcpop", Feature: &ARM64.HasDCPOP},
3939
{Name: "asimddp", Feature: &ARM64.HasASIMDDP},
4040
{Name: "asimdfhm", Feature: &ARM64.HasASIMDFHM},
41+
{Name: "dit", Feature: &ARM64.HasDIT},
4142
}
4243
}
4344

cpu/cpu_linux_arm64.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const (
3535
hwcap_SHA512 = 1 << 21
3636
hwcap_SVE = 1 << 22
3737
hwcap_ASIMDFHM = 1 << 23
38+
hwcap_DIT = 1 << 24
3839

3940
hwcap2_SVE2 = 1 << 1
4041
)
@@ -106,6 +107,8 @@ func doinit() {
106107
ARM64.HasSHA512 = isSet(hwCap, hwcap_SHA512)
107108
ARM64.HasSVE = isSet(hwCap, hwcap_SVE)
108109
ARM64.HasASIMDFHM = isSet(hwCap, hwcap_ASIMDFHM)
110+
ARM64.HasDIT = isSet(hwCap, hwcap_DIT)
111+
109112

110113
// HWCAP2 feature bits
111114
ARM64.HasSVE2 = isSet(hwCap2, hwcap2_SVE2)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy