|
@@ -177,10 +177,7 @@ mips_mipssim_init(MachineState *machine)
|
|
|
/* Map the BIOS / boot exception handler. */
|
|
|
memory_region_add_subregion(address_space_mem, 0x1fc00000LL, bios);
|
|
|
/* Load a BIOS / boot exception handler image. */
|
|
|
- if (bios_name == NULL) {
|
|
|
- bios_name = BIOS_FILENAME;
|
|
|
- }
|
|
|
- filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
|
|
|
+ filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name ?: BIOS_FILENAME);
|
|
|
if (filename) {
|
|
|
bios_size = load_image_targphys(filename, 0x1fc00000LL, BIOS_SIZE);
|
|
|
g_free(filename);
|
|
@@ -188,10 +185,9 @@ mips_mipssim_init(MachineState *machine)
|
|
|
bios_size = -1;
|
|
|
}
|
|
|
if ((bios_size < 0 || bios_size > BIOS_SIZE) &&
|
|
|
- !kernel_filename && !qtest_enabled()) {
|
|
|
+ bios_name && !qtest_enabled()) {
|
|
|
/* Bail out if we have neither a kernel image nor boot vector code. */
|
|
|
- error_report("Could not load MIPS bios '%s', and no "
|
|
|
- "-kernel argument was specified", bios_name);
|
|
|
+ error_report("Could not load MIPS bios '%s'", bios_name);
|
|
|
exit(1);
|
|
|
} else {
|
|
|
/* We have a boot vector start address. */
|