]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.14] runtime: guard VZEROUPPER on CPU feature
authorCherry Zhang <cherryyz@google.com>
Wed, 26 Feb 2020 01:30:37 +0000 (20:30 -0500)
committerCarlos Amedee <carlos@golang.org>
Mon, 2 Mar 2020 22:30:16 +0000 (22:30 +0000)
commitc54e36905b394dea9fbcf816c3a6e6751187258d
tree7705b9558a592f51dd7cfcae6c33f0638e7a9a3d
parent329317472fd3fbc3179523bd70e03e452c829846
[release-branch.go1.14] runtime: guard VZEROUPPER on CPU feature

In CL 219131 we inserted a VZEROUPPER instruction on darwin/amd64.
The instruction is not available on pre-AVX machines. Guard it
with CPU feature.

Updates #37459.
Fixes #37478.

Change-Id: I9a064df277d091be4ee594eda5c7fd8ee323102b
Reviewed-on: https://go-review.googlesource.com/c/go/+/221057
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
(cherry picked from commit c46ffdd2eca339918ed30b6ba9d4715ba769d35d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/221058
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
src/runtime/cpuflags.go
src/runtime/mkpreempt.go
src/runtime/preempt_amd64.s