]> Git Repo - qemu.git/commitdiff
lm32: remove bios_name
authorPaolo Bonzini <[email protected]>
Mon, 26 Oct 2020 14:30:19 +0000 (10:30 -0400)
committerPaolo Bonzini <[email protected]>
Thu, 10 Dec 2020 17:15:05 +0000 (12:15 -0500)
Cc: Michael Walle <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Message-Id: <20201026143028.3034018[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/lm32/milkymist.c

index 9ef94883d5074c2262578d59d441bb0ac209a4de..93ca8bc2acc44a78b98fe21158489607f89e096e 100644 (file)
@@ -108,6 +108,7 @@ static void
 milkymist_init(MachineState *machine)
 {
     MachineClass *mc = MACHINE_GET_CLASS(machine);
+    const char *bios_name = machine->firmware ?: BIOS_FILENAME;
     const char *kernel_filename = machine->kernel_filename;
     const char *kernel_cmdline = machine->kernel_cmdline;
     const char *initrd_filename = machine->initrd_filename;
@@ -162,9 +163,6 @@ milkymist_init(MachineState *machine)
     }
 
     /* load bios rom */
-    if (bios_name == NULL) {
-        bios_name = BIOS_FILENAME;
-    }
     bios_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
 
     if (bios_filename) {
This page took 0.025934 seconds and 4 git commands to generate.