Skip to content

procub3r/rizc-v

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rizc-v

A RISC-V emulator written in Zig with the goal of running Linux.

Dependencies

  • Grab riscv64-elf-*.tar.gz from riscv-gnu-toolchain releases and add the bin/ 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.

Build, Run and Test

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

TODO

  • Unprivileged RV32I core
  • Put tests in place
    • Try to compile tests with build.zig instead of riscv-gnu-toolchain
  • MAFD extensions
  • Privileged RV32I core
  • Port OpenSBI
    • Linux needs this
  • Port Linux
    • ez ¯\_(ツ)_/¯

About

RISC-V emulator written in Zig.

Resources

Stars

Watchers

Forks

Languages