diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2018-04-12 10:27:42 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-04-15 20:33:59 +0000 |
| commit | d0712096b32d032b0b83a5eb899a7359a830732b (patch) | |
| tree | 4e9e64a61b04f580ff844d5884fb4876505aff9d /src/runtime/runtime2.go | |
| parent | 284ba47b4916e3cf4f206494ad5a3577e20db9bf (diff) | |
| download | go-d0712096b32d032b0b83a5eb899a7359a830732b.tar.xz | |
runtime: use internal/cpu.X86.HasAVX2 instead of support_avx2
After CL 104636 cpu.X86.HasAVX is set early enough that it can be used
in runtime·memclrNoHeapPointers. Add an offset to use in assembly and
replace the only occurence of support_avx2.
Change-Id: Icada62efeb3e24d71251d55623a8a8602364c9a8
Reviewed-on: https://go-review.googlesource.com/106595
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 0d253233d2..51fceb8d8f 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -779,7 +779,6 @@ var ( processorVersionInfo uint32 isIntel bool lfenceBeforeRdtsc bool - support_avx2 bool support_erms bool support_osxsave bool support_popcnt bool |
