Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/build/env/linux-riscv-qemu: add new RISC-V builder under qemu #30262
@rminnich says qemu (from the sifive fork) is good now.
We can run a builder similar to what we're going to do for Fuchsia and what we previous did for a bit in https://github.com/golang/build/tree/master/env/linux-arm-qemu (but that was more emulation than we'd probably want here). We'll probably want to only run tests in qemu but do builds natively.
@rminnich, on golang-dev you wrote:
Where is that fork?
Searching for [sifive qemu], one of the top hits is from April 2018 with title "RISC-V QEMU Part 2: The RISC-V QEMU port is upstream - SiFive" but I guess https://github.com/sifive/freedom-u-sdk has a risc-qemu submodule that goes to ... https://github.com/riscv/riscv-qemu/tree/ad8989a3b5359eb1afa57d7ffedeea6a3c797d9c .... so, that one? Or which branch thereof?
Sorry if this is already known but the Risc-V have been upstreamed into Qemu and version 3.1.0 already works.
Fedora also have a riscv64 image and multiple packages built (including gccgo). I'm running it locally and found no problems so far:
Current qemu version (I'm running on Mac right now installed with homebrew):
The Fedora docs are in https://fedoraproject.org/wiki/Architectures/RISC-V/Installing#Boot_under_QEMU and the image I used is https://dl.fedoraproject.org/pub/alt/risc-v/disk-images/fedora/rawhide/20190126.n.0/Developer/.