]> Cypherpunks repositories - gostls13.git/commitdiff
go/build, runtime/internal/sys: reserve GOARCH=loong64
authorWANG Xuerui <git@xen0n.name>
Mon, 12 Jul 2021 04:40:28 +0000 (04:40 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 14 Jul 2021 22:52:15 +0000 (22:52 +0000)
Per discussion at #46229 we are taking the "loong64" GOARCH value for
the upcoming LoongArch 64-bit port. It is not clear whether any 32-bit
non-bare-metal userland will exist for LoongArch, so only reserve
"loong64" for now.

Change-Id: I97d262b4ab68ff61c22ccf83e26baf70eefd568d
GitHub-Last-Rev: ecdd8c53bdee57fec093ddba18ec8878b8ae7c74
GitHub-Pull-Request: golang/go#47129
Reviewed-on: https://go-review.googlesource.com/c/go/+/333909
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Alexander Rakoczy <alex@golang.org>

24 files changed:
src/go/build/syslist.go
src/runtime/internal/sys/zgoarch_386.go
src/runtime/internal/sys/zgoarch_amd64.go
src/runtime/internal/sys/zgoarch_arm.go
src/runtime/internal/sys/zgoarch_arm64.go
src/runtime/internal/sys/zgoarch_arm64be.go
src/runtime/internal/sys/zgoarch_armbe.go
src/runtime/internal/sys/zgoarch_loong64.go [new file with mode: 0644]
src/runtime/internal/sys/zgoarch_mips.go
src/runtime/internal/sys/zgoarch_mips64.go
src/runtime/internal/sys/zgoarch_mips64le.go
src/runtime/internal/sys/zgoarch_mips64p32.go
src/runtime/internal/sys/zgoarch_mips64p32le.go
src/runtime/internal/sys/zgoarch_mipsle.go
src/runtime/internal/sys/zgoarch_ppc.go
src/runtime/internal/sys/zgoarch_ppc64.go
src/runtime/internal/sys/zgoarch_ppc64le.go
src/runtime/internal/sys/zgoarch_riscv.go
src/runtime/internal/sys/zgoarch_riscv64.go
src/runtime/internal/sys/zgoarch_s390.go
src/runtime/internal/sys/zgoarch_s390x.go
src/runtime/internal/sys/zgoarch_sparc.go
src/runtime/internal/sys/zgoarch_sparc64.go
src/runtime/internal/sys/zgoarch_wasm.go

index 1275f7c986d36799a8022139fa694861a5ef340d..60ac5511bda72f1cbd1cb47f764300f87450298a 100644 (file)
@@ -8,4 +8,4 @@ package build
 // Do not remove from this list, as these are used for go/build filename matching.
 
 const goosList = "aix android darwin dragonfly freebsd hurd illumos ios js linux nacl netbsd openbsd plan9 solaris windows zos "
-const goarchList = "386 amd64 amd64p32 arm armbe arm64 arm64be ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32le ppc riscv riscv64 s390 s390x sparc sparc64 wasm "
+const goarchList = "386 amd64 amd64p32 arm armbe arm64 arm64be ppc64 ppc64le loong64 mips mipsle mips64 mips64le mips64p32 mips64p32le ppc riscv riscv64 s390 s390x sparc sparc64 wasm "
index 98a2401bfe9a8798c474573b82d263db8fe8dbd1..5b189e7e738f469258c7595343f0cf89cb09b73d 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index d8faa5c786085161c92d31127155cef5f08c250e..312977d07923f85ea9e6b575162abdf7b0305509 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index b64a69c9b44eec0f4b35e7906b87560005be7121..5781870324e0b900a42f890b6c3a4366330ae13f 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index de6f85347b1d609778dcb3396639abb463e675f1..f72a1f2161c1df8713b0c84e1eea36c2bd8b7960 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 1
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index b762bb069f8c1bc3b5852295b77ff6a8fdd3c487..e8056460587ca1d55b176f97689e9e7f327a80e2 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 1
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index e5297e4b169d936edcc7ac03b7d26ff99246acb0..d8d4e56d9a4e35cfdc7231b094f38b7538a2301b 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
diff --git a/src/runtime/internal/sys/zgoarch_loong64.go b/src/runtime/internal/sys/zgoarch_loong64.go
new file mode 100644 (file)
index 0000000..6f35eb4
--- /dev/null
@@ -0,0 +1,33 @@
+// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
+
+//go:build loong64
+// +build loong64
+
+package sys
+
+const GOARCH = `loong64`
+
+const Goarch386 = 0
+const GoarchAmd64 = 0
+const GoarchAmd64p32 = 0
+const GoarchArm = 0
+const GoarchArmbe = 0
+const GoarchArm64 = 0
+const GoarchArm64be = 0
+const GoarchPpc64 = 0
+const GoarchPpc64le = 0
+const GoarchLoong64 = 1
+const GoarchMips = 0
+const GoarchMipsle = 0
+const GoarchMips64 = 0
+const GoarchMips64le = 0
+const GoarchMips64p32 = 0
+const GoarchMips64p32le = 0
+const GoarchPpc = 0
+const GoarchRiscv = 0
+const GoarchRiscv64 = 0
+const GoarchS390 = 0
+const GoarchS390x = 0
+const GoarchSparc = 0
+const GoarchSparc64 = 0
+const GoarchWasm = 0
index b5f4ed390c6ba32309187ce7d7a2273381253928..bd58a92a0e4e93f513f829e6827dbfee804f7f9c 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 1
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 73777cceb21096f9180addf525c154c5504601be..8e4a3dcd526d854958bda84dc279c28530e0a87a 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 1
index 0c81c36c09741d3d40c551bf35c6b070b02dc926..d8e00339ea81aa6f485d7e9f7424c6a9f9f6e5dc 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index d63ce27d24d8bbca7551c4472b683d29fc2ca61d..8549cc0ba3443fa808cb9982b84047974767a53d 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 2d577890b2e671667bc5b57cfe7a0febe0fb3302..667b6fe514b0bd4c0c324edd77a76aa266f11105 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 8af919d03a35f429bd79167c7d826d4a1d79865a..8bedb2bb9019699e4b8e992f83c9f7b4ad178f18 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 1
 const GoarchMips64 = 0
index f6f12a5ddcecad74dded8441a93230a519202119..fe2196a32789e51b4b90dde92ab6c45dea0edcc9 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index a8379601f47e652baa8bb2f89014317866e8dc90..bd7cc43de3974d2041c98e87d3041dd62cbfa608 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 1
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index f2ec5dcba7291a5ef1fdcd5094d5c32bef366d8f..e101892401650d3cfd342b47b2db890fc911c246 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 1
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 83a3312f5f3171d94159f829be00d3592ddd6643..559f86071a7ea83258d0b28b50615f4648e8c12b 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 1dfcc84997b870b125474a9865b5177c0a96969f..8485a94b3dd910dd00e79aee3a4cd73c9b2e8ae2 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 91aba5a0f6cfaec578bb71273aea1c3dce301bf4..4c4569e3762159cc8b313628a7a71eacc798f019 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index edce50234e56a7e6b89e88935352bc5f0016546d..e50d2edbb5515c84f34c3eac907658c112abe16f 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 5ae9560ab0154e8c3c602c8f59788605e98a5eaf..0d08752c7bc5906e971eceae6ea834fb6f9e41ff 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index e2a0134affd01e30e004230c4f7891d1eaed394c..ba405bbf3557aa808e4435718d645c29481c00da 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0
index 52e85dea371d6d6149feb333e7c08088fe6e6242..7c3e5afd1ee2415c55065f21aec888dd0ec778ec 100644 (file)
@@ -16,6 +16,7 @@ const GoarchArm64 = 0
 const GoarchArm64be = 0
 const GoarchPpc64 = 0
 const GoarchPpc64le = 0
+const GoarchLoong64 = 0
 const GoarchMips = 0
 const GoarchMipsle = 0
 const GoarchMips64 = 0