Re:RVVM – RISC-V Virtual Machine
by codetrotter on Thursday July 22, 2021 @10:16AM
(#27919138)
Another, special one: https://github.com/gamozolabs/fuzz_with_emus
It's a RISC-V emulator specially made for fuzzing software.
There's no documentation about it in the repo but the guy that wrote it streamed much of the development of it on Twitch and has put those videos on YouTube. He is also on HN.
I took a quick skim of the code and nothing obviously popped out at me. How do you preserve architectural behavior of the emulator while 'fuzzing'? How does the emulator know where the boundary of the code under test is?
https://riscv.org/exchange/software/
The most popular emulators are qemu and spike. There are even a few emulators written in Rust that aren't on the list:
https://github.com/shady831213/terminus
https://github.com/d0iasm/rvemu
I've messed around with Terminus the most.