Skip to content

penberg/riscv-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages