]> git.proxmox.com Git - qemu.git/blobdiff - hw/mips_r4k.c
New '-bios' option, used to select an alternate BIOS image from bios_dir.
[qemu.git] / hw / mips_r4k.c
index 5769ade968f4776ddd55af2babafc9a6f7a7ebec..47b51c7b0df29ea3686c87d49bbe59d5d3a4eebd 100644 (file)
@@ -179,7 +179,9 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
        preloaded we also initialize the hardware, since the BIOS wasn't
        run. */
     bios_offset = ram_size + vga_ram_size;
-    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);
     bios_size = load_image(buf, phys_ram_base + bios_offset);
     if ((bios_size > 0) && (bios_size <= BIOS_SIZE)) {
        cpu_register_physical_memory(0x1fc00000,