]> Cypherpunks repositories - gostls13.git/commit
runtime: initialise cpu.HWCap on netbsd/arm64
authorTobias Klauser <tklauser@distanz.ch>
Mon, 28 Sep 2020 08:11:06 +0000 (10:11 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 28 Sep 2020 22:28:06 +0000 (22:28 +0000)
commit1f4d035178d2d792a74b6b872f6a213bf5fd9326
tree90e8a0ab98d753ae297d5802c095c56290fc2307
parentaf18bce87cc7ee1ffc68f91abefa241ab209539e
runtime: initialise cpu.HWCap on netbsd/arm64

NetBSD does not supply AT_HWCAP, however we still need to initialise
cpu.HWCaps.  For now specify the bare minimum until we add some form of
capabilities detection. See
https://golang.org/issue/30824#issuecomment-494901591

Follows CL 174129 which did the same for openbsd/arm64.

Updates #30824

Change-Id: I43a86b583bc60d259a66772703de06970124bb7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/257998
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Trust: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
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