mirror of
https://github.com/golang/go
synced 2024-11-20 08:04:42 -07:00
cmd/internal/sys: add support for GOARCH=mips{,le}
Change-Id: I8c6b8839c68818430510702719dca15b8d748fb8 Reviewed-on: https://go-review.googlesource.com/31473 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
c408266e28
commit
66fdf433b0
@ -16,6 +16,7 @@ const (
|
||||
ARM
|
||||
ARM64
|
||||
I386
|
||||
MIPS
|
||||
MIPS64
|
||||
PPC64
|
||||
S390X
|
||||
@ -97,6 +98,26 @@ var ArchARM64 = &Arch{
|
||||
MinLC: 4,
|
||||
}
|
||||
|
||||
var ArchMIPS = &Arch{
|
||||
Name: "mips",
|
||||
Family: MIPS,
|
||||
ByteOrder: binary.BigEndian,
|
||||
IntSize: 4,
|
||||
PtrSize: 4,
|
||||
RegSize: 4,
|
||||
MinLC: 4,
|
||||
}
|
||||
|
||||
var ArchMIPSLE = &Arch{
|
||||
Name: "mipsle",
|
||||
Family: MIPS,
|
||||
ByteOrder: binary.LittleEndian,
|
||||
IntSize: 4,
|
||||
PtrSize: 4,
|
||||
RegSize: 4,
|
||||
MinLC: 4,
|
||||
}
|
||||
|
||||
var ArchMIPS64 = &Arch{
|
||||
Name: "mips64",
|
||||
Family: MIPS64,
|
||||
@ -153,6 +174,8 @@ var Archs = [...]*Arch{
|
||||
ArchAMD64P32,
|
||||
ArchARM,
|
||||
ArchARM64,
|
||||
ArchMIPS,
|
||||
ArchMIPSLE,
|
||||
ArchMIPS64,
|
||||
ArchMIPS64LE,
|
||||
ArchPPC64,
|
||||
|
Loading…
Reference in New Issue
Block a user