Skip to content

foophoof/risc-v-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

risc-v-emulator

Build Status

Note: This project is primarily a learning project. You probably shouldn't use it in any "real" code, as it may have bugs and/or security issues. Hopefully it's interesting to read through if you're interested in RISC-V, though.

risc-v-emulator is a RISC-V emulator written in Rust.

The initial goal is to implement the RV32G (IMAFD) ISA according to the 2.1 User-Level ISA spec, and machine-mode (M-mode) according to the 1.9 Privileged Architecture spec.

Usage

You need a RISC-V toolchain to compile the test program, but then you can run a simple Hello, world program like this:

$ make -C test-program
$ cargo run ./test-program/test

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

WIP Rust RISC-V emulator

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages