2017-01-14 01:05:42 +01:00
|
|
|
// Copyright 2016 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2018-09-24 23:46:21 +02:00
|
|
|
// +build linux
|
2017-01-14 01:05:42 +01:00
|
|
|
// +build ppc64 ppc64le
|
|
|
|
|
|
|
|
package runtime
|
|
|
|
|
2018-09-24 23:46:21 +02:00
|
|
|
import "internal/cpu"
|
2017-01-14 01:05:42 +01:00
|
|
|
|
|
|
|
func archauxv(tag, val uintptr) {
|
|
|
|
switch tag {
|
|
|
|
case _AT_HWCAP:
|
2018-09-24 23:46:21 +02:00
|
|
|
// ppc64x doesn't have a 'cpuid' instruction
|
|
|
|
// equivalent and relies on HWCAP/HWCAP2 bits for
|
|
|
|
// hardware capabilities.
|
|
|
|
cpu.HWCap = uint(val)
|
2017-01-14 01:05:42 +01:00
|
|
|
case _AT_HWCAP2:
|
2018-09-24 23:46:21 +02:00
|
|
|
cpu.HWCap2 = uint(val)
|
2017-01-14 01:05:42 +01:00
|
|
|
}
|
|
|
|
}
|