]> Cypherpunks repositories - gostls13.git/commit
runtime: get s390x vector facility availability from AT_HWCAP
authorMichael Munday <munday@ca.ibm.com>
Mon, 17 Oct 2016 21:10:24 +0000 (17:10 -0400)
committerMichael Munday <munday@ca.ibm.com>
Wed, 19 Oct 2016 21:50:13 +0000 (21:50 +0000)
commitf1ad4863aae1fd5cd5d0e3e4e6cb6bfae62951a6
treec9b8619f350882ba8445a8dde0f1d9007a641483
parent2be3ab441578413972d93fc1048decc422640b09
runtime: get s390x vector facility availability from AT_HWCAP

This is a more robust method for obtaining the availability of vx.
Since this variable may be checked frequently I've also now
padded it so that it will be in its own cache line.

I've kept the other check (in hash/crc32) the same for now until
I can figure out the best way to update it.

Updates #15403.

Change-Id: I74eed651afc6f6a9c5fa3b88fa6a2b0c9ecf5875
Reviewed-on: https://go-review.googlesource.com/31149
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/asm_s390x.s
src/runtime/os_linux.go
src/runtime/os_linux_arm.go
src/runtime/os_linux_noauxv.go
src/runtime/os_linux_s390x.go [new file with mode: 0644]