libriscv
Safe Rust wrapper around libriscv_sys, a fast RISC-V sandbox emulator.
How to use
Add the crate to your dependencies and run a RISC-V ELF:
use ;
let elf = read.unwrap;
let options = builder.build.unwrap;
let registry = empty;
let mut machine = new.unwrap;
machine.run.unwrap;
See examples/ for more usage patterns.
Credits
The directory examples/advanced/riscv_program is copied from the upstream repository.