an5206: Don't enforce use of kernel for qtest
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
5c12762c2d
commit
19c82aac75
@ -12,6 +12,7 @@
|
||||
#include "hw/loader.h"
|
||||
#include "elf.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "sysemu/qtest.h"
|
||||
|
||||
#define KERNEL_LOAD_ADDR 0x10000
|
||||
#define AN5206_MBAR_ADDR 0x10000000
|
||||
@ -62,6 +63,9 @@ static void an5206_init(QEMUMachineInitArgs *args)
|
||||
|
||||
/* Load kernel. */
|
||||
if (!kernel_filename) {
|
||||
if (qtest_enabled()) {
|
||||
return;
|
||||
}
|
||||
fprintf(stderr, "Kernel image must be specified\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user