Spike RISC-V emulator¶
Spike, also known as riscv-isa-sim, is a commonly used RISC-V emulator.
- Apply the two patches in https://github.com/riscv/riscv-isa-sim/pull/53, which are necessary in order to have a serial console
Building coreboot and running it in Spike¶
- Configure coreboot and run
util/riscv/make-spike-elf.sh build/coreboot.rom build/coreboot.elfto convert coreboot to an ELF that Spike can load
spike -m1024 build/coreboot.elf