]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: remove option to mark cpu features required
authorMartin Möhrmann <martin@golang.org>
Wed, 6 Oct 2021 03:27:52 +0000 (05:27 +0200)
committerMartin Möhrmann <martin@golang.org>
Wed, 6 Oct 2021 18:44:56 +0000 (18:44 +0000)
commit195945a40d6c644e91d4811c727e65a0593be1eb
treecfcb148b55b67c585c294fe60915187d5cc303b8
parent415f0a33750a7cb4ad282fc5aa664d3fde244f84
internal/cpu: remove option to mark cpu features required

With the removal of SSE2 runtime detection made in
golang.org/cl/344350 we can remove this mechanism as there
are no required features anymore.

For making sure CPUs running a go program support all
the minimal hardware requirements the go runtime should
do feature checks early in the runtime initialization
before it is likely any compiler emitted but unsupported
instructions are used. This is already the case for e.g.
checking MMX support on 386 arch targets.

Change-Id: If7b1cb6f43233841e917d37a18314d06a334a734
Reviewed-on: https://go-review.googlesource.com/c/go/+/354209
Trust: Martin Möhrmann <martin@golang.org>
Run-TryBot: Martin Möhrmann <martin@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_test.go