Revision 1192dad8 hw/sun4m.c

b/hw/sun4m.c
430 430
                                 (PROM_SIZE_MAX + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK,
431 431
                                 prom_offset | IO_MEM_ROM);
432 432

  
433
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, PROM_FILENAME);
433
    if (bios_name == NULL)
434
        bios_name = PROM_FILENAME;
435
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, bios_name);
434 436
    ret = load_elf(buf, PROM_PADDR - PROM_VADDR, NULL, NULL, NULL);
435 437
    if (ret < 0) {
436 438
	fprintf(stderr, "qemu: could not load prom '%s'\n",

Also available in: Unified diff