1// Copyright 2016 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build linux && (ppc64 || ppc64le)
6
7package runtime
8
9import "internal/cpu"
10
11func archauxv(tag, val uintptr) {
12	switch tag {
13	case _AT_HWCAP:
14		// ppc64x doesn't have a 'cpuid' instruction
15		// equivalent and relies on HWCAP/HWCAP2 bits for
16		// hardware capabilities.
17		cpu.HWCap = uint(val)
18	case _AT_HWCAP2:
19		cpu.HWCap2 = uint(val)
20	}
21}
22
23func osArchInit() {}
24