Binary build of QEMU configured for RISC-V targets. This build provides portable QEMU binaries for RISC-V system and user-mode emulation.
This build includes the following QEMU targets:
riscv32-softmmu- RISC-V 32-bit system emulationriscv64-softmmu- RISC-V 64-bit system emulationriscv32-linux-user- RISC-V 32-bit Linux user-mode emulationriscv64-linux-user- RISC-V 64-bit Linux user-mode emulation
qemu-riscv provides weekly builds of QEMU top-of-trunk. These releases are generally marked as pre-release.
qemu-riscv also provides tagged builds of QEMU releases.
The latest most-stable build is tagged 'latest'.
Binary releases are provided for:
- Linux x86_64 (manylinux2014, manylinux_2_28, manylinux_2_34)
- Linux aarch64 (manylinux_2_28, manylinux_2_34)
- macOS arm64 (Apple Silicon)
Download the appropriate tarball for your platform from the releases page, extract it, and add the bin directory to your PATH:
tar xzf qemu-riscv-<platform>-<version>.tar.gz
export PATH=$(pwd)/qemu-riscv/bin:$PATHThen you can use the QEMU RISC-V binaries:
qemu-system-riscv64 --version
qemu-riscv64 --versionYou can build locally using CMake:
mkdir build
cd build
cmake ..
makeOr use the build script directly:
export qemu_latest_rls=master # or a specific tag like v9.2.0
./scripts/build.sh