mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
Add basic support for IBM Z (s390x) CPU feature (known as 'facilities') detection. Note that some of these features are mandatory when using the Go compiler (for example, ldisp and eimm) but aren't mandatory when using gccgo. Cryptographic function detection is not yet implemented for gccgo. Change-Id: Ic6494d0df0bc1c1ad1713c9ff11ae23fba03d215 Reviewed-on: https://go-review.googlesource.com/c/163003 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
23 lines
1.0 KiB
Go
23 lines
1.0 KiB
Go
// 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 gccgo
|
|
|
|
package cpu
|
|
|
|
// haveAsmFunctions reports whether the other functions in this file can
|
|
// be safely called.
|
|
func haveAsmFunctions() bool { return false }
|
|
|
|
// TODO(mundaym): the following feature detection functions are currently
|
|
// stubs. See https://golang.org/cl/162887 for how to fix this.
|
|
// They are likely to be expensive to call so the results should be cached.
|
|
func stfle() facilityList { panic("not implemented for gccgo") }
|
|
func kmQuery() queryResult { panic("not implemented for gccgo") }
|
|
func kmcQuery() queryResult { panic("not implemented for gccgo") }
|
|
func kmctrQuery() queryResult { panic("not implemented for gccgo") }
|
|
func kmaQuery() queryResult { panic("not implemented for gccgo") }
|
|
func kimdQuery() queryResult { panic("not implemented for gccgo") }
|
|
func klmdQuery() queryResult { panic("not implemented for gccgo") }
|