Revision 1192dad8 hw/ppc_chrp.c

b/hw/ppc_chrp.c
349 349

  
350 350
    /* allocate and load BIOS */
351 351
    bios_offset = ram_size + vga_ram_size;
352
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME);
352
    if (bios_name == NULL)
353
        bios_name = BIOS_FILENAME;
354
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, bios_name);
353 355
    bios_size = load_image(buf, phys_ram_base + bios_offset);
354 356
    if (bios_size < 0 || bios_size > BIOS_SIZE) {
355 357
        cpu_abort(env, "qemu: could not load PowerPC bios '%s'\n", buf);

Also available in: Unified diff