Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/sysPublic

Commit0c18c88

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp