]> Cypherpunks repositories - gostls13.git/commit
internal/cpu, runtime: make linux/loong64 HWCAP data available
authorWANG Xuerui <git@xen0n.name>
Wed, 5 Apr 2023 07:56:42 +0000 (15:56 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Thu, 29 Aug 2024 09:15:06 +0000 (09:15 +0000)
commit0f003f9d15b896841544925ff621056ae285679d
treedbf515cf87f354ebf3d6dd416178779ba4080e09
parent9e8ea567c838574a0f14538c0bbbd83c3215aa55
internal/cpu, runtime: make linux/loong64 HWCAP data available

This can be used to toggle runtime usages of ISA extensions as such
usages appear.

Only the CRC32 bit is exposed for now, as the others are not going to be
utilized in the standard library for a while.

Change-Id: I774032ca84dc8bcf1c9f17558917315af07c7314
Reviewed-on: https://go-review.googlesource.com/c/go/+/482416
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: xiaodong liu <teaofmoli@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_loong64.go
src/internal/cpu/cpu_loong64_hwcap.go [new file with mode: 0644]
src/internal/cpu/cpu_loong64_linux.go [new file with mode: 0644]
src/runtime/os_linux_loong64.go