An open API service indexing awesome lists of open source software.

https://github.com/technius/toyrisc

A toy RISC-V simulator
https://github.com/technius/toyrisc

Last synced: 11 months ago
JSON representation

A toy RISC-V simulator

Awesome Lists containing this project

README

          

# ToyRISC

This is a toy RISC-V simulator.

# Notes

* Only way to change privilege mode is through `ECALL` and `MRET`/`SRET`.
* `MRET`/`SRET` will change the privilege mode to the one in `MSTATUS.MPP`
* Traps switch machine to M-mode unless `mdeleg` is set.
* "privilege mode stack"?
* https://cdn2.hubspot.net/hubfs/3020607/An%20Introduction%20to%20the%20RISC-V%20Architecture.pdf