]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: consolidate arm64 feature detection
authorMartin Möhrmann <moehrmann@google.com>
Tue, 13 Oct 2020 20:30:23 +0000 (22:30 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Tue, 20 Oct 2020 11:09:52 +0000 (11:09 +0000)
commitde932da453f68b8fc04e9c2ab25136748173c806
treed657dab40079de391135dffc4fab9fc159a1d005
parent55b2d479d774d9887a6ec32b34e2c413f7c84f78
internal/cpu: consolidate arm64 feature detection

Move code to detect and mask arm64 CPU features from
runtime to internal/cpu.

Change-Id: Ib784e2ff056e8def125d68827b852f07a3eff0db
Reviewed-on: https://go-review.googlesource.com/c/go/+/261878
Trust: Martin Möhrmann <moehrmann@google.com>
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
17 files changed:
src/internal/cpu/cpu_android.go [new file with mode: 0644]
src/internal/cpu/cpu_arm64.go
src/internal/cpu/cpu_arm64.s [new file with mode: 0644]
src/internal/cpu/cpu_freebsd.go [new file with mode: 0644]
src/internal/cpu/cpu_linux.go [new file with mode: 0644]
src/internal/cpu/cpu_other.go [new file with mode: 0644]
src/runtime/auxv_none.go
src/runtime/os_freebsd_arm64.go
src/runtime/os_freebsd_noauxv.go
src/runtime/os_linux_arm64.go
src/runtime/os_netbsd.go
src/runtime/os_netbsd_386.go
src/runtime/os_netbsd_amd64.go
src/runtime/os_netbsd_arm.go
src/runtime/os_netbsd_arm64.go
src/runtime/os_openbsd_arm64.go
src/runtime/sys_freebsd_arm64.s