1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:54:44 -07:00

cmd/internal/sys: provide architecture definition for riscv64

Updates #27532

Change-Id: I7ecf5239d6bc49408a2f155d0f5398ee716fd443
Reviewed-on: https://go-review.googlesource.com/c/go/+/193678
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Joel Sing 2019-09-06 03:27:12 +10:00
parent c78ac39ae9
commit a3ceb57fb4

View File

@ -20,6 +20,7 @@ const (
MIPS
MIPS64
PPC64
RISCV64
S390X
Wasm
)
@ -152,6 +153,15 @@ var ArchPPC64LE = &Arch{
MinLC: 4,
}
var ArchRISCV64 = &Arch{
Name: "riscv64",
Family: RISCV64,
ByteOrder: binary.LittleEndian,
PtrSize: 8,
RegSize: 8,
MinLC: 4,
}
var ArchS390X = &Arch{
Name: "s390x",
Family: S390X,
@ -182,6 +192,7 @@ var Archs = [...]*Arch{
ArchMIPS64LE,
ArchPPC64,
ArchPPC64LE,
ArchRISCV64,
ArchS390X,
ArchWasm,
}