ppc/amigaone: Allow running AmigaOS without firmware image
commite25acd619135c752672de323f22aba8c1d00584e
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 28 Nov 2023 01:32:53 +0000 (28 02:32 +0100)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 30 Nov 2023 12:13:00 +0000 (30 22:13 +1000)
treefe2bc7f14a1be272db191358679c62fa52218e21
parentc1dc0a1debe1efb7e4e02b580d43cf6cab1d36e8
ppc/amigaone: Allow running AmigaOS without firmware image

The machine uses a modified U-Boot under GPL license but the sources
of it are lost with only a binary available so it cannot be included
in QEMU. Allow running without the firmware image which can be used
when calling a boot loader directly and thus simplifying booting
guests. We need a small routine that AmigaOS calls from ROM which is
added in this case to allow booting AmigaOS without external firmware
image.

Fixes: d9656f860a38 ("hw/ppc: Add emulation of AmigaOne XE board")
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/amigaone.c