milkymist: Suppress -kernel/-bios/-drive error for qtest
Acked-by: Michael Walle <michael@walle.cc> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
19c82aac75
commit
c00eb5cee1
@ -21,6 +21,7 @@
|
|||||||
#include "hw/hw.h"
|
#include "hw/hw.h"
|
||||||
#include "hw/block/flash.h"
|
#include "hw/block/flash.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
|
#include "sysemu/qtest.h"
|
||||||
#include "hw/devices.h"
|
#include "hw/devices.h"
|
||||||
#include "hw/boards.h"
|
#include "hw/boards.h"
|
||||||
#include "hw/loader.h"
|
#include "hw/loader.h"
|
||||||
@ -143,7 +144,7 @@ milkymist_init(QEMUMachineInitArgs *args)
|
|||||||
reset_info->bootstrap_pc = BIOS_OFFSET;
|
reset_info->bootstrap_pc = BIOS_OFFSET;
|
||||||
|
|
||||||
/* if no kernel is given no valid bios rom is a fatal error */
|
/* 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",
|
fprintf(stderr, "qemu: could not load Milkymist One bios '%s'\n",
|
||||||
bios_name);
|
bios_name);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user