diff options
author | Andreas Färber <afaerber@suse.de> | 2013-07-29 18:47:21 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-11-05 17:47:29 +0100 |
commit | 5c12762c2d9cfc7ff9744e4af14ef35190c5369b (patch) | |
tree | be21f873fe1fa791376b31d87064074144993626 | |
parent | 5efe843a9a0e049d3d2a13411b7df7d3a430540c (diff) |
mcf5208: Don't enforce use of kernel for qtest
Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | hw/m68k/mcf5208.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index fb96fe8548..6e30c0b393 100644 --- a/hw/m68k/mcf5208.c +++ b/hw/m68k/mcf5208.c @@ -10,6 +10,7 @@ #include "qemu/timer.h" #include "hw/ptimer.h" #include "sysemu/sysemu.h" +#include "sysemu/qtest.h" #include "net/net.h" #include "hw/boards.h" #include "hw/loader.h" @@ -267,6 +268,9 @@ static void mcf5208evb_init(QEMUMachineInitArgs *args) /* Load kernel. */ if (!kernel_filename) { + if (qtest_enabled()) { + return; + } fprintf(stderr, "Kernel image must be specified\n"); exit(1); } |