mac_oldworld: Allow specifying nvram backing store
commit5df3eb4d361fd609632281969b101f4f84f1c4d8
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 2 Feb 2023 00:24:06 +0000 (2 01:24 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 6 Feb 2023 11:41:39 +0000 (6 11:41 +0000)
treed7e44b24e91721c32d4a7d760823a27fb9e75977
parent1f7888e2250adf3f4cffc24f7be29f062e095480
mac_oldworld: Allow specifying nvram backing store

Add a way to set a backing store for the mac_nvram. Use -drive
file=nvram.img,format=raw,if=mtd to specify backing file where
nvram.img must be MACIO_NVRAM_SIZE which is 8192 bytes.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <1aadee8f0ca0f56cf1b7c45c3944676a07d91de9.1675297286.git.balaton@eik.bme.hu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/ppc/mac_oldworld.c