diff --git a/cpu/cpu_ppc64x.go b/cpu/cpu_linux_ppc64x.go similarity index 98% rename from cpu/cpu_ppc64x.go rename to cpu/cpu_linux_ppc64x.go index a971b012..6c8d975d 100644 --- a/cpu/cpu_ppc64x.go +++ b/cpu/cpu_linux_ppc64x.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux // +build ppc64 ppc64le package cpu diff --git a/cpu/cpu_other_ppc64x.go b/cpu/cpu_other_ppc64x.go new file mode 100644 index 00000000..3053b4b9 --- /dev/null +++ b/cpu/cpu_other_ppc64x.go @@ -0,0 +1,12 @@ +// Copyright 2019 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. + +// +build !linux +// +build ppc64 ppc64le + +package cpu + +const cacheLineSize = 128 + +func doinit() {}