Revision e4bcb14c hw/integratorcp.c

b/hw/integratorcp.c
478 478
    uint32_t bios_offset;
479 479
    qemu_irq *pic;
480 480
    qemu_irq *cpu_pic;
481
    int sd;
481 482

  
482 483
    if (!cpu_model)
483 484
        cpu_model = "arm926";
......
506 507
    icp_control_init(0xcb000000);
507 508
    pl050_init(0x18000000, pic[3], 0);
508 509
    pl050_init(0x19000000, pic[4], 1);
509
    pl181_init(0x1c000000, sd_bdrv, pic[23], pic[24]);
510
    sd = drive_get_index(IF_SD, 0, 0);
511
    if (sd == -1) {
512
        fprintf(stderr, "qemu: missing SecureDigital card\n");
513
        exit(1);
514
    }
515
    pl181_init(0x1c000000, drives_table[sd].bdrv, pic[23], pic[24]);
510 516
    if (nd_table[0].vlan) {
511 517
        if (nd_table[0].model == NULL
512 518
            || strcmp(nd_table[0].model, "smc91c111") == 0) {

Also available in: Unified diff