From fa770016484165d65200243811f177f1332a9e94 Mon Sep 17 00:00:00 2001 From: Vladimir Stefanovic Date: Tue, 18 Oct 2016 23:50:25 +0200 Subject: [PATCH] runtime/internal/sys: add arch defs for GOARCH=mips{,le} Change-Id: I6288f1fca1ae4c64b3907af700811ee842053020 Reviewed-on: https://go-review.googlesource.com/31472 Reviewed-by: Ian Lance Taylor --- src/runtime/internal/sys/arch.go | 1 + src/runtime/internal/sys/arch_mips.go | 18 +++++++++++++++ src/runtime/internal/sys/arch_mipsle.go | 18 +++++++++++++++ src/runtime/internal/sys/zgoarch_mips.go | 26 ++++++++++++++++++++++ src/runtime/internal/sys/zgoarch_mipsle.go | 26 ++++++++++++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 src/runtime/internal/sys/arch_mips.go create mode 100644 src/runtime/internal/sys/arch_mipsle.go create mode 100644 src/runtime/internal/sys/zgoarch_mips.go create mode 100644 src/runtime/internal/sys/zgoarch_mipsle.go diff --git a/src/runtime/internal/sys/arch.go b/src/runtime/internal/sys/arch.go index c1757041d8ca41..148e8380d0bd13 100644 --- a/src/runtime/internal/sys/arch.go +++ b/src/runtime/internal/sys/arch.go @@ -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 index 00000000000000..dc6c434dac7d98 --- /dev/null +++ b/src/runtime/internal/sys/arch_mips.go @@ -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 index 00000000000000..33e9764037426d --- /dev/null +++ b/src/runtime/internal/sys/arch_mipsle.go @@ -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 index 00000000000000..2f733d2788cf88 --- /dev/null +++ b/src/runtime/internal/sys/zgoarch_mips.go @@ -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 index 00000000000000..95f3d5aab9a373 --- /dev/null +++ b/src/runtime/internal/sys/zgoarch_mipsle.go @@ -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