d0iasm / rvemu-for-book

Reference implementation for the book "Writing a RISC-V Emulator in Rust".
http://book.rvemu.app/
MIT License
358 stars 27 forks source link

A completed tutorial based on yours #6

Open siriusdemon opened 2 years ago

siriusdemon commented 2 years ago

Thanks for your kindness. You have written such a tutorial and shared your code, which encourages me to learn it and complete the tutorial.

The new project is available at here and the online book is hosted on github page.

I have used most of your code and follow the structure of yours. I hope this tutorial will be helpful for anyone who want to learn about RISC-V emulator.

HCHogan commented 11 months ago

Thanks! That really helps me a lot

HCHogan commented 11 months ago

@siriusdemon 你的书中说尝试自己编译xv6但遇到了一个非法指令错误,我发现是由于xv6默认使用了c拓展导致的,将xv6的编译参数中加上 -march=rv64imazicsr -mabi=lp64, 另外要去掉proc.c第488行的asm volatile("wfi");,就能成功运行了