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