Skip to content

Commit

Permalink
cmd/internal/sys: add support for GOARCH=mips{,le}
Browse files Browse the repository at this point in the history
Change-Id: I8c6b8839c68818430510702719dca15b8d748fb8
Reviewed-on: https://go-review.googlesource.com/31473
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
Vladimir Stefanovic authored and bradfitz committed Nov 3, 2016
1 parent c408266 commit 66fdf43
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/cmd/internal/sys/arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (
ARM
ARM64
I386
MIPS
MIPS64
PPC64
S390X
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -153,6 +174,8 @@ var Archs = [...]*Arch{
ArchAMD64P32,
ArchARM,
ArchARM64,
ArchMIPS,
ArchMIPSLE,
ArchMIPS64,
ArchMIPS64LE,
ArchPPC64,
Expand Down

0 comments on commit 66fdf43

Please sign in to comment.