Description
This issue serves to track the port to the RISC-V architecture. There is an out-of-tree port at https://github.com/riscv/riscv-go based on Go 1.8 which - according to riscvarchive/riscv-go#19 - is no longer maintained and would need quite some work to be updated to the current Go tip.
Also see https://golang.org/cl/106256#message-2d9a5c5b89ad55b8b7999f794983f993649232c8 and https://groups.google.com/forum/#!searchin/golang-dev/RISC%7Csort:date/golang-dev/VpsyGdi-sQQ/FMu6IB_2CwAJ where @josharian summarized the current state of the existing port.
The GOARCH
values riscv
and riscv64
were reserved in https://golang.org/cl/106256. These values are already used by gccgo. Additional changes were made to debug/elf
(https://golang.org/cl/107339), cmd/cgo
(https://golang.org/cl/110066), cmd/dist
and cmd/types
(https://golang.org/cl/118618) in order be able to generate type definition files in the x/sys/unix
package (https://golang.org/cl/133735).