Revision 4a057712 hw/ppc_prep.c

b/hw/ppc_prep.c
560 560
    snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME);
561 561
    bios_size = load_image(buf, phys_ram_base + bios_offset);
562 562
    if (bios_size < 0 || bios_size > BIOS_SIZE) {
563
        fprintf(stderr, "qemu: could not load PPC PREP bios '%s'\n", buf);
563
        cpu_abort(env, "qemu: could not load PPC PREP bios '%s'\n", buf);
564 564
        exit(1);
565 565
    }
566 566
    bios_size = (bios_size + 0xfff) & ~0xfff;
567
    cpu_register_physical_memory((uint32_t)(-bios_size), 
567
    cpu_register_physical_memory((uint32_t)(-bios_size),
568 568
                                 bios_size, bios_offset | IO_MEM_ROM);
569 569

  
570 570
    if (linux_boot) {
......
572 572
        /* now we can load the kernel */
573 573
        kernel_size = load_image(kernel_filename, phys_ram_base + kernel_base);
574 574
        if (kernel_size < 0) {
575
            fprintf(stderr, "qemu: could not load kernel '%s'\n", 
576
                    kernel_filename);
575
            cpu_abort(env, "qemu: could not load kernel '%s'\n",
576
                      kernel_filename);
577 577
            exit(1);
578 578
        }
579 579
        /* load initrd */
......
582 582
            initrd_size = load_image(initrd_filename,
583 583
                                     phys_ram_base + initrd_base);
584 584
            if (initrd_size < 0) {
585
                fprintf(stderr, "qemu: could not load initial ram disk '%s'\n", 
586
                        initrd_filename);
585
                cpu_abort(env, "qemu: could not load initial ram disk '%s'\n",
586
                          initrd_filename);
587 587
                exit(1);
588 588
            }
589 589
        } else {
......
627 627
            || strcmp(nd_table[0].model, "ne2k_isa") == 0) {
628 628
            isa_ne2000_init(ne2000_io[i], i8259[ne2000_irq[i]], &nd_table[i]);
629 629
        } else {
630
            fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd_table[0].model);
630
            /* Why ? */
631
            cpu_abort(env, "qemu: Unsupported NIC: %s\n", nd_table[0].model);
631 632
            exit (1);
632 633
        }
633 634
    }

Also available in: Unified diff