]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/mips_malta.c
New '-bios' option, used to select an alternate BIOS image from bios_dir.
[mirror_qemu.git] / hw / mips_malta.c
index 3b37596d19433ad4cd5ac4421692e1dc7c347d0f..6f0edf9a3b3e3835db8d89d4162b37db1d4015d8 100644 (file)
@@ -791,7 +791,9 @@ void mips_malta_init (int ram_size, int vga_ram_size, int boot_device,
 
     /* Load a BIOS image unless a kernel image has been specified. */
     if (!kernel_filename) {
-        snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME);
+        if (bios_name == NULL)
+            bios_name = BIOS_FILENAME;
+        snprintf(buf, sizeof(buf), "%s/%s", bios_dir, bios_name);
         ret = load_image(buf, phys_ram_base + bios_offset);
         if (ret < 0 || ret > BIOS_SIZE) {
             fprintf(stderr,