Revision 4a057712 hw/ppc_chrp.c
b/hw/ppc_chrp.c | ||
---|---|---|
349 | 349 |
snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME); |
350 | 350 |
bios_size = load_image(buf, phys_ram_base + bios_offset); |
351 | 351 |
if (bios_size < 0 || bios_size > BIOS_SIZE) { |
352 |
fprintf(stderr, "qemu: could not load PowerPC bios '%s'\n", buf);
|
|
352 |
cpu_abort(env, "qemu: could not load PowerPC bios '%s'\n", buf);
|
|
353 | 353 |
exit(1); |
354 | 354 |
} |
355 | 355 |
bios_size = (bios_size + 0xfff) & ~0xfff; |
356 |
cpu_register_physical_memory((uint32_t)(-bios_size),
|
|
356 |
cpu_register_physical_memory((uint32_t)(-bios_size), |
|
357 | 357 |
bios_size, bios_offset | IO_MEM_ROM); |
358 | 358 |
|
359 | 359 |
/* allocate and load VGA BIOS */ |
... | ... | |
382 | 382 |
/* now we can load the kernel */ |
383 | 383 |
kernel_size = load_image(kernel_filename, phys_ram_base + kernel_base); |
384 | 384 |
if (kernel_size < 0) { |
385 |
fprintf(stderr, "qemu: could not load kernel '%s'\n",
|
|
386 |
kernel_filename); |
|
385 |
cpu_abort(env, "qemu: could not load kernel '%s'\n",
|
|
386 |
kernel_filename);
|
|
387 | 387 |
exit(1); |
388 | 388 |
} |
389 | 389 |
/* load initrd */ |
... | ... | |
392 | 392 |
initrd_size = load_image(initrd_filename, |
393 | 393 |
phys_ram_base + initrd_base); |
394 | 394 |
if (initrd_size < 0) { |
395 |
fprintf(stderr, "qemu: could not load initial ram disk '%s'\n",
|
|
396 |
initrd_filename); |
|
395 |
cpu_abort(env, "qemu: could not load initial ram disk '%s'\n",
|
|
396 |
initrd_filename);
|
|
397 | 397 |
exit(1); |
398 | 398 |
} |
399 | 399 |
} else { |
Also available in: Unified diff