Commit c1037aad authored by Yao Zhang's avatar Yao Zhang Committed by Minux Ma

runtime: added mips64{,le} build tags and GOARCH cases

Change-Id: I381c03d957a0dccae5f655f02e92760e5c0e9629
Reviewed-on: https://go-review.googlesource.com/14929Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent 15b51d6a
......@@ -4,6 +4,8 @@
// +build !arm
// +build !arm64
// +build !mips64
// +build !mips64le
package runtime
......
......@@ -144,7 +144,7 @@ func infoBigStruct() []byte {
typeScalar, typeScalar, typeScalar, typeScalar, // t int; y uint16; u uint64
typePointer, typeScalar, // i string
}
case "arm64", "amd64", "ppc64", "ppc64le":
case "arm64", "amd64", "mips64", "mips64le", "ppc64", "ppc64le":
return []byte{
typePointer, // q *int
typeScalar, typeScalar, typeScalar, // w byte; e [17]byte
......
......@@ -6,7 +6,7 @@
// xxhash: https://code.google.com/p/xxhash/
// cityhash: https://code.google.com/p/cityhash/
// +build amd64 amd64p32 arm64 ppc64 ppc64le
// +build amd64 amd64p32 arm64 mips64 mips64le ppc64 ppc64le
package runtime
......
......@@ -4,7 +4,7 @@
// Routines that are implemented in assembly in asm_{amd64,386,arm,arm64,ppc64x}.s
// +build ignore
// +build mips64 mips64le
package runtime
......
......@@ -103,7 +103,7 @@ func TestGdbPython(t *testing.T) {
// stack frames on RISC architectures.
canBackTrace := false
switch runtime.GOARCH {
case "amd64", "386", "ppc64", "ppc64le", "arm", "arm64":
case "amd64", "386", "ppc64", "ppc64le", "arm", "arm64", "mips64", "mips64le":
canBackTrace = true
args = append(args,
"-ex", "echo BEGIN goroutine 2 bt\n",
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build arm ppc64 ppc64le
// +build arm ppc64 ppc64le mips64 mips64le
package runtime
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment