A RISC-V emulator written in Zig with the goal of running Linux.
- Grab
riscv64-elf-*.tar.gz
from riscv-gnu-toolchain releases and add thebin/
folder to PATH to build tests. - Install
libmpc
if you don't already have it (non devel package is fine). Required by riscv-gnu-toolchain to build the tests.
Clone with the --recurse-submodules
flag to pull riscv-tests as a submodule for testing.
zig build run # To run the emulator
zig build test # To run tests
- Unprivileged RV32I core
- Put tests in place
- Try to compile tests with
build.zig
instead ofriscv-gnu-toolchain
- Try to compile tests with
- MAFD extensions
- Privileged RV32I core
- Port OpenSBI
- Linux needs this
- Port Linux
- ez
¯\_(ツ)_/¯
- ez