cpu: add basic support for GOARCH=sparc64

cpu.go uses cacheLineSize for CacheLinePad and calls initOptions, both
of which are supplied per architecture, so the package does not build on
sparc64. This adds those two for it.

Updates golang/go#55000

Change-Id: I71d6bbde37cda3e263dbb1c65177fa619494c6dc
GitHub-Last-Rev: ff36fd1f54176d099fc3577d0b7ae5557ba464f7
GitHub-Pull-Request: golang/sys#289
Reviewed-on: https://go-review.googlesource.com/c/sys/+/822844
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
1 file changed
tree: 08c403b997972e7827893126a57333426f19a8c5
  1. cpu/
  2. execabs/
  3. plan9/
  4. unix/
  5. windows/
  6. .gitattributes
  7. .gitignore
  8. codereview.cfg
  9. CONTRIBUTING.md
  10. go.mod
  11. LICENSE
  12. PATENTS
  13. README.md
README.md

sys

Go Reference

This repository holds supplemental Go packages for low-level interactions with the operating system.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/sys.

The main issue tracker for the sys repository is located at https://go.dev/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.