1
0
mirror of https://github.com/golang/go synced 2024-11-20 06:54:42 -07:00

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 <iant@golang.org>
This commit is contained in:
Vladimir Stefanovic 2016-10-18 23:50:25 +02:00 committed by Brad Fitzpatrick
parent 66fdf433b0
commit fa77001648
5 changed files with 89 additions and 0 deletions

View File

@ -11,6 +11,7 @@ const (
ARM
ARM64
I386
MIPS
MIPS64
PPC64
S390X

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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