]> git.proxmox.com Git - qemu.git/commitdiff
leon3: Don't enforce use of -bios with qtest
authorAndreas Färber <afaerber@suse.de>
Sun, 4 Aug 2013 15:58:58 +0000 (17:58 +0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 5 Nov 2013 16:47:29 +0000 (17:47 +0100)
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/sparc/leon3.c

index 390f3e4bda1a9c4a02a736c071aad894ab164a7d..c583c3d0c566260c9c7df06a33b06d6a745c6b33 100644 (file)
@@ -26,6 +26,7 @@
 #include "hw/ptimer.h"
 #include "sysemu/char.h"
 #include "sysemu/sysemu.h"
+#include "sysemu/qtest.h"
 #include "hw/boards.h"
 #include "hw/loader.h"
 #include "elf.h"
@@ -178,7 +179,7 @@ static void leon3_generic_hw_init(QEMUMachineInitArgs *args)
             fprintf(stderr, "qemu: could not load prom '%s'\n", filename);
             exit(1);
         }
-    } else if (kernel_filename == NULL) {
+    } else if (kernel_filename == NULL && !qtest_enabled()) {
         fprintf(stderr, "Can't read bios image %s\n", filename);
         exit(1);
     }