QEMUとRISC-V
参考
GDBとの繋ぎかたが参考になった
QEMUとGDBの繋げかたの参考になりそう
QEMU + Virt + RISC-VでUARTへ出力してる
QEMUの起動オプションなんかも参考になるかも
qemu-system-riscv32 --machine help
$ qemu-system-riscv32 --machine help
Supported machines are:
none empty machine
opentitan RISC-V Board compatible with OpenTitan
sifive_e RISC-V Board compatible with SiFive E SDK
sifive_u RISC-V Board compatible with SiFive U SDK
spike RISC-V Spike board (default)
virt RISC-V VirtIO board
Boot options
-kernel
The virt machine can start using the standard -kernel functionality for loading a Linux kernel
-bios
a VxWorks kernel, an S-mode U-Boot bootloader with the default OpenSBI firmware image as the -bios.
Running U-Boot
$ qemu-system-riscv64 -M virt -smp 4 -m 2G -display none -serial stdio -kernel /path/to/u-boot.bin