]> Git Repo - qemu.git/commitdiff
milkymist: Suppress -kernel/-bios/-drive error for qtest
authorAndreas Färber <[email protected]>
Sun, 4 Aug 2013 14:49:28 +0000 (16:49 +0200)
committerAndreas Färber <[email protected]>
Tue, 5 Nov 2013 16:47:29 +0000 (17:47 +0100)
Acked-by: Michael Walle <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
hw/lm32/milkymist.c

index f1744ec07ecd96c4c85f52c35d6d310b6a8b4fb4..15053c4c3756fe4d6eb7ff2cfd2b76241319d59a 100644 (file)
@@ -21,6 +21,7 @@
 #include "hw/hw.h"
 #include "hw/block/flash.h"
 #include "sysemu/sysemu.h"
+#include "sysemu/qtest.h"
 #include "hw/devices.h"
 #include "hw/boards.h"
 #include "hw/loader.h"
@@ -143,7 +144,7 @@ milkymist_init(QEMUMachineInitArgs *args)
     reset_info->bootstrap_pc = BIOS_OFFSET;
 
     /* if no kernel is given no valid bios rom is a fatal error */
-    if (!kernel_filename && !dinfo && !bios_filename) {
+    if (!kernel_filename && !dinfo && !bios_filename && !qtest_enabled()) {
         fprintf(stderr, "qemu: could not load Milkymist One bios '%s'\n",
                 bios_name);
         exit(1);
This page took 0.027238 seconds and 4 git commands to generate.