internal/cpu: more build fixes for Go1.16beta1 release
authorIan Lance Taylor <iant@golang.org>
Mon, 4 Jan 2021 20:43:25 +0000 (12:43 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Jan 2021 21:48:59 +0000 (13:48 -0800)
commita9f76d03bbc791cb55e4e0658f23efd0103ea9b0
tree29505078464b7c8342c58d2309490a5657805da8
parentdb7ce388dcef50f11af9717570e1e49415733d43
internal/cpu: more build fixes for Go1.16beta1 release

Some files were missing from the libgo copy of internal/cpu, because they
used to only declare CacheLinePadSize which libgo gets from goarch.sh.
Now they also declare doinit, so copy them over.  Adjust cpu_other.go.

Fix the amd64p32 build by adding a build constraint to cpu_no_name.go.

Fixes PR go/98493

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/281472
gcc/go/gofrontend/MERGE
libgo/go/internal/cpu/cpu_arm.go
libgo/go/internal/cpu/cpu_mips.go [new file with mode: 0644]
libgo/go/internal/cpu/cpu_mips64x.go
libgo/go/internal/cpu/cpu_mipsle.go [new file with mode: 0644]
libgo/go/internal/cpu/cpu_no_name.go
libgo/go/internal/cpu/cpu_other.go
libgo/go/internal/cpu/cpu_ppc64x.go [new file with mode: 0644]
libgo/go/internal/cpu/cpu_wasm.go [new file with mode: 0644]
libgo/go/internal/cpu/cpu_x86.go