[PATCH for 8.2] ppc/amigaone: Allow running without firmware image

BALATON Zoltan posted 1 patch 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231125141926.ABE8175A4C0@zero.eik.bme.hu
Maintainers: BALATON Zoltan <balaton@eik.bme.hu>
hw/ppc/amigaone.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH for 8.2] ppc/amigaone: Allow running without firmware image
Posted by BALATON Zoltan 1 year ago
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 by specifying -bios
none which can be used when calling a boot loader directly which does
not need the firmware and thus simplifying booting guests.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
Please merge for 8.2 as ir allows booting AmigaOS simpler without
having to download separate firmware.

 hw/ppc/amigaone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ppc/amigaone.c b/hw/ppc/amigaone.c
index 992a55e632..f3d702814a 100644
--- a/hw/ppc/amigaone.c
+++ b/hw/ppc/amigaone.c
@@ -105,7 +105,7 @@ static void amigaone_init(MachineState *machine)
             exit(1);
         }
         g_free(filename);
-    } else if (!qtest_enabled()) {
+    } else if (!qtest_enabled() && strcmp(fwname, "none") != 0) {
         error_report("Could not find firmware '%s'", fwname);
         exit(1);
     }
-- 
2.30.9