A comprehensive guide to building a 64-bit RISC-V emulator from scratch using Rust, capable of running xv6, a Unix-like operating system. The tutorial covers fundamental computer architecture concepts including instruction set architecture (ISA), privileged architecture, exceptions, interrupts, peripheral devices, and virtual memory systems. The book is structured in two main chapters: hardware components (CPU, memory, control registers, PLIC, CLINT, UART, Virtio, and virtual memory) and instruction set implementations (RV64I base instructions, multiplication/division extensions, and atomic operations).

2m read timeFrom book.rvemu.app
Post cover image
Table of contents
IntroductionChapter 1Chapter 2OutcomeContact

Sort: