I am using a Power9 machine.
# ppc64-softmmu/qemu-system-ppc64 -nographic -M pseries,accel=tcg -nodefaults -serial stdio -prom-env 'use-nvramrc?=true' -prom-env 'nvramrc=." Hello World!" cr power-off'
SLOF ********************************************************************** QEMU Starting Build Date = Jul 24 2017 15:15:46 FW Version = git-89f519f09bf85091 Press "s" to enter Open Firmware.
Populating /vdevice methods Populating /vdevice/vty@71000000 Populating /vdevice/nvram@71000001 Populating /pci@800000020000000 (!) Executing code specified in nvramrc SLOF Setup = Hello World!
I am using a Power9 machine.
# ppc64-softmmu/ qemu-system- ppc64 -nographic -M pseries,accel=tcg -nodefaults -serial stdio -prom-env 'use-nvramrc?=true' -prom-env 'nvramrc=." Hello World!" cr power-off'
SLOF ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* 85091
QEMU Starting
Build Date = Jul 24 2017 15:15:46
FW Version = git-89f519f09bf
Press "s" to enter Open Firmware.
Populating /vdevice methods vty@71000000 nvram@71000001 00000
Populating /vdevice/
Populating /vdevice/
Populating /pci@8000000200
(!) Executing code specified in nvramrc
SLOF Setup = Hello World!