summaryrefslogtreecommitdiff
path: root/Documentation/mainboard/emulation/qemu-riscv.md
blob: ed2c6d589292af1a9465b0a9dd0fbbf11af52f2d (plain)
1
2
3
4
5
6
7
8
# QEMU RISC-V emulator

## Building coreboot and running it in QEMU

- Configure coreboot and run `make` as usual
- Run `util/riscv/make-spike-elf.sh build/coreboot.rom build/coreboot.elf` to
  convert coreboot to an ELF that QEMU can load
- Run `qemu-system-riscv64 -M virt -m 1024M -nographic -kernel build/coreboot.elf`