]> Cypherpunks repositories - gostls13.git/commit
internal/cpu,runtime: call cpu.initialize before alginit
authorMeng Zhuo <mengzhuo1203@gmail.com>
Tue, 10 Apr 2018 14:33:03 +0000 (22:33 +0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 Apr 2018 16:13:52 +0000 (16:13 +0000)
commit954f651ccc2f779a8e570a669a0a89bba53c2789
tree26b391a5234d65dad2f8eea72a0f97b825bfc926
parent60fee0153ff9ae2f03e5db9fa8cf700cd953bf8d
internal/cpu,runtime: call cpu.initialize before alginit

runtime.alginit needs runtime/support_{aes,ssse3,sse41} feature flag
to init aeshash function but internal/cpu.init not be called yet.
This CL will call internal/cpu.initialize before runtime.alginit, so
that we can move all cpu features related code to internal/cpu.

Change-Id: I00b8e403ace3553f8c707563d95f27dade0bc853
Reviewed-on: https://go-review.googlesource.com/104636
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/racewalk.go
src/internal/cpu/cpu.go
src/internal/cpu/cpu_arm64.go
src/internal/cpu/cpu_no_init.go [new file with mode: 0644]
src/internal/cpu/cpu_x86.go
src/runtime/proc.go