Commit a3ceb57f authored by Joel Sing's avatar Joel Sing

cmd/internal/sys: provide architecture definition for riscv64

Updates #27532

Change-Id: I7ecf5239d6bc49408a2f155d0f5398ee716fd443
Reviewed-on: https://go-review.googlesource.com/c/go/+/193678Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
parent c78ac39a
......@@ -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,
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment