This page describes how to build and run coreboot for QEMU/PPC64. You can configure ELF payload via make menuconfig
(make sure "ROM chip size" is large enough).
qemu-system-ppc64 -M powernv,hb-mode=on \ -cpu power9 \ -bios build/coreboot.rom \ -drive file=build/coreboot.rom,if=mtd \ -serial stdio \ -display none
-cpu power9
.-bios
specifies initial program (bootloader should suffice, but whole image works fine too).-drive
specifies image for emulated flash device.make defconfig KBUILD_DEFCONFIG=configs/config.emulation_qemu_power9 make
This builds coreboot with no payload.