aboutsummaryrefslogtreecommitdiff
path: root/hw/mips/mipssim.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-26 10:30:21 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-10 12:15:05 -0500
commit59588bea5efa3f497a39a05ec94aed289afd3d2a (patch)
tree31fe94887eead02eb3bf9672798bc2ac08b36664 /hw/mips/mipssim.c
parent1684273ca8144d8f7dc9c8e9fea17753a9c09fd8 (diff)
downloadqemu-59588bea5efa3f497a39a05ec94aed289afd3d2a.zip
qemu-59588bea5efa3f497a39a05ec94aed289afd3d2a.tar.gz
qemu-59588bea5efa3f497a39a05ec94aed289afd3d2a.tar.bz2
mips: remove bios_name
Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20201026143028.3034018-9-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/mips/mipssim.c')
-rw-r--r--hw/mips/mipssim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/mips/mipssim.c b/hw/mips/mipssim.c
index aaa62a0..cc9b093 100644
--- a/hw/mips/mipssim.c
+++ b/hw/mips/mipssim.c
@@ -177,7 +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. */
- filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name ?: BIOS_FILENAME);
+ filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, machine->firmware ?: BIOS_FILENAME);
if (filename) {
bios_size = load_image_targphys(filename, 0x1fc00000LL, BIOS_SIZE);
g_free(filename);
@@ -185,9 +185,9 @@ mips_mipssim_init(MachineState *machine)
bios_size = -1;
}
if ((bios_size < 0 || bios_size > BIOS_SIZE) &&
- bios_name && !qtest_enabled()) {
+ machine->firmware && !qtest_enabled()) {
/* Bail out if we have neither a kernel image nor boot vector code. */
- error_report("Could not load MIPS bios '%s'", bios_name);
+ error_report("Could not load MIPS bios '%s'", machine->firmware);
exit(1);
} else {
/* We have a boot vector start address. */