]> Cypherpunks repositories - gostls13.git/commit
runtime: get ppc64x ISA level and hardware capabilities from HWCAP/HWCAP2
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Fri, 28 Oct 2016 16:42:42 +0000 (14:42 -0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 1 Nov 2016 13:41:04 +0000 (13:41 +0000)
commit40aaf283124de44d513ca086976194f0133faa82
tree966fd06eb26fe8fb2d8a8cf35010e814e01e0f5e
parent47c58b46676af533a105fb10169522b958843a70
runtime: get ppc64x ISA level and hardware capabilities from HWCAP/HWCAP2

This implements a check that can be done at runtime for the ISA level and
hardware capability. It follows the same implementation as in s390x.

These checks will be important as we enable new instructions and write go
asm implementations using those.

Updates #15403
Fixes #16643

Change-Id: Idfee374a3ffd7cf13a7d8cf0a6c83d247d3bee16
Reviewed-on: https://go-review.googlesource.com/32330
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_linux.go
src/runtime/os_linux_noauxv.go
src/runtime/os_linux_ppc64x.go [new file with mode: 0644]