]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/internal/sys: add arch defs for GOARCH=mips{,le}
authorVladimir Stefanovic <vladimir.stefanovic@imgtec.com>
Tue, 18 Oct 2016 21:50:25 +0000 (23:50 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 3 Nov 2016 23:28:28 +0000 (23:28 +0000)
Change-Id: I6288f1fca1ae4c64b3907af700811ee842053020
Reviewed-on: https://go-review.googlesource.com/31472
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/internal/sys/arch.go
src/runtime/internal/sys/arch_mips.go [new file with mode: 0644]
src/runtime/internal/sys/arch_mipsle.go [new file with mode: 0644]
src/runtime/internal/sys/zgoarch_mips.go [new file with mode: 0644]
src/runtime/internal/sys/zgoarch_mipsle.go [new file with mode: 0644]

index c1757041d8ca4101d7750fd37ef6e2606a307918..148e8380d0bd137fad46f4bbaad223f482b8f3cd 100644 (file)
@@ -11,6 +11,7 @@ const (
        ARM
        ARM64
        I386
+       MIPS
        MIPS64
        PPC64
        S390X
diff --git a/src/runtime/internal/sys/arch_mips.go b/src/runtime/internal/sys/arch_mips.go
new file mode 100644 (file)
index 0000000..dc6c434
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright 2015 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.
+
+package sys
+
+const (
+       ArchFamily    = MIPS
+       BigEndian     = 1
+       CacheLineSize = 32
+       DefaultPhysPageSize = 65536
+       PCQuantum     = 4
+       Int64Align    = 4
+       HugePageSize  = 0
+       MinFrameSize  = 4
+)
+
+type Uintreg uint32
diff --git a/src/runtime/internal/sys/arch_mipsle.go b/src/runtime/internal/sys/arch_mipsle.go
new file mode 100644 (file)
index 0000000..33e9764
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright 2016 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.
+
+package sys
+
+const (
+       ArchFamily          = MIPS
+       BigEndian           = 0
+       CacheLineSize       = 32
+       DefaultPhysPageSize = 65536
+       PCQuantum           = 4
+       Int64Align          = 4
+       HugePageSize        = 0
+       MinFrameSize        = 4
+)
+
+type Uintreg uint32
diff --git a/src/runtime/internal/sys/zgoarch_mips.go b/src/runtime/internal/sys/zgoarch_mips.go
new file mode 100644 (file)
index 0000000..2f733d2
--- /dev/null
@@ -0,0 +1,26 @@
+// generated by gengoos.go using 'go generate'
+
+package sys
+
+const GOARCH = `mips`
+
+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 GoarchMips = 1
+const GoarchMipsle = 0
+const GoarchMips64 = 0
+const GoarchMips64le = 0
+const GoarchMips64p32 = 0
+const GoarchMips64p32le = 0
+const GoarchPpc = 0
+const GoarchS390 = 0
+const GoarchS390x = 0
+const GoarchSparc = 0
+const GoarchSparc64 = 0
diff --git a/src/runtime/internal/sys/zgoarch_mipsle.go b/src/runtime/internal/sys/zgoarch_mipsle.go
new file mode 100644 (file)
index 0000000..95f3d5a
--- /dev/null
@@ -0,0 +1,26 @@
+// generated by gengoos.go using 'go generate'
+
+package sys
+
+const GOARCH = `mipsle`
+
+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 GoarchMips = 0
+const GoarchMipsle = 1
+const GoarchMips64 = 0
+const GoarchMips64le = 0
+const GoarchMips64p32 = 0
+const GoarchMips64p32le = 0
+const GoarchPpc = 0
+const GoarchS390 = 0
+const GoarchS390x = 0
+const GoarchSparc = 0
+const GoarchSparc64 = 0