penberg / riscv-rs

Yet another RISC-V emulator written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

riscv-rs

This is a RISC-V emulator written in Rust. The goal of this project is to provide a platform for experimenting with extensions to the RISC-V instruction set.

Roadmap

  • ELF support with mmap()
  • RV32I instruction set support (in progress)

Getting Started

You can run RISC-V ELF executables with riscv-rs as follows:

cargo run <program>

For example, download the RISC-V compliance tests and build them:

git clone https://github.com/riscv/riscv-compliance
cd riscv-compliance
$ RISCV_PREFIX=riscv64-linux-gnu- make

You can then run a test cases as follows:

$ cargo run riscv-compliance/work/rv32i/I-ADD-01.elf

License

Licensed under either of

at your option.

About

Yet another RISC-V emulator written in Rust.


Languages

Language:Rust 100.0%