aboutsummaryrefslogtreecommitdiff
path: root/Documentation/mainboard/emulation/qemu-riscv.md
blob: 3aad816855f9e38f55953cca4484c10a7faaa47c (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`