mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 08:04:12 +00:00
mips_mipssim: Silence BIOS loading warning for qtest
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
6d0a373542
commit
22d5523d3f
@ -38,6 +38,7 @@
|
|||||||
#include "hw/sysbus.h"
|
#include "hw/sysbus.h"
|
||||||
#include "exec/address-spaces.h"
|
#include "exec/address-spaces.h"
|
||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
|
#include "sysemu/qtest.h"
|
||||||
|
|
||||||
static struct _loaderparams {
|
static struct _loaderparams {
|
||||||
int ram_size;
|
int ram_size;
|
||||||
@ -190,7 +191,8 @@ mips_mipssim_init(QEMUMachineInitArgs *args)
|
|||||||
} else {
|
} else {
|
||||||
bios_size = -1;
|
bios_size = -1;
|
||||||
}
|
}
|
||||||
if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
|
if ((bios_size < 0 || bios_size > BIOS_SIZE) &&
|
||||||
|
!kernel_filename && !qtest_enabled()) {
|
||||||
/* Bail out if we have neither a kernel image nor boot vector code. */
|
/* Bail out if we have neither a kernel image nor boot vector code. */
|
||||||
error_report("Could not load MIPS bios '%s', and no "
|
error_report("Could not load MIPS bios '%s', and no "
|
||||||
"-kernel argument was specified", filename);
|
"-kernel argument was specified", filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user