This is the book for writing a 64-bit RISC-V emulator from scratch in Rust. It shows us how to implement an emulator in 10 steps. You can run xv6, a simple Unix-like OS, in your emulator in the final step.
You'll learn the following basic computer architecture from making an emulator in Rust:
Basic RISC-V architecture
How to write code in Rust language
The source code is available at d0iasm/rvemu-for-book.
A part of CSRs
UART (a universal asynchronous receiver-transmitter)
PLIC (a platform-level interrupt controller)
CLINT (a core-local interruptor)
Congratulations🎉 Now you can run xv6 in your emulator!