Revision 1192dad8 hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
564 | 564 |
|
565 | 565 |
/* allocate and load BIOS */ |
566 | 566 |
bios_offset = ram_size + vga_ram_size; |
567 |
snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME); |
|
567 |
if (bios_name == NULL) |
|
568 |
bios_name = BIOS_FILENAME; |
|
569 |
snprintf(buf, sizeof(buf), "%s/%s", bios_dir, bios_name); |
|
568 | 570 |
bios_size = load_image(buf, phys_ram_base + bios_offset); |
569 | 571 |
if (bios_size < 0 || bios_size > BIOS_SIZE) { |
570 | 572 |
cpu_abort(env, "qemu: could not load PPC PREP bios '%s'\n", buf); |
Also available in: Unified diff