Revision aaed909a hw/integratorcp.c

b/hw/integratorcp.c
473 473
    qemu_irq *pic;
474 474
    qemu_irq *cpu_pic;
475 475

  
476
    env = cpu_init();
477 476
    if (!cpu_model)
478 477
        cpu_model = "arm926";
479
    cpu_arm_set_model(env, cpu_model);
478
    env = cpu_init(cpu_model);
479
    if (!env) {
480
        fprintf(stderr, "Unable to find CPU definition\n");
481
        exit(1);
482
    }
480 483
    bios_offset = ram_size + vga_ram_size;
481 484
    /* ??? On a real system the first 1Mb is mapped as SSRAM or boot flash.  */
482 485
    /* ??? RAM shoud repeat to fill physical memory space.  */

Also available in: Unified diff