Skip to content

Commit 3938a4f

Browse files
committed
cpu: add support for ppc64 on platforms other than aix and linux
This allows the cpu package to function on openbsd/ppc64. Updates golang/go#56001 Change-Id: Iff306b6091da8f7dc28dd1bd2c9ba668b5318a67 Reviewed-on: https://go-review.googlesource.com/c/sys/+/439977 Run-TryBot: Joel Sing <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent a970992 commit 3938a4f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cpu/cpu_other_ppc64x.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2022 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 !aix && !linux && (ppc64 || ppc64le)
6+
// +build !aix
7+
// +build !linux
8+
// +build ppc64 ppc64le
9+
10+
package cpu
11+
12+
func archInit() {
13+
PPC64.IsPOWER8 = true
14+
Initialized = true
15+
}

0 commit comments

Comments
 (0)