Revision aa9311d8 hw/versatilepb.c

b/hw/versatilepb.c
167 167
    NICInfo *nd;
168 168
    int n;
169 169
    int done_smc = 0;
170
    int index;
171 170

  
172 171
    if (!cpu_model)
173 172
        cpu_model = "arm926";
......
224 223
       that includes hardware cursor support from the PL111.  */
225 224
    sysbus_create_simple("pl110_versatile", 0x10120000, pic[16]);
226 225

  
227
    index = drive_get_index(IF_SD, 0, 0);
228
    if (index == -1) {
229
        fprintf(stderr, "qemu: missing SecureDigital card\n");
230
        exit(1);
231
    }
232

  
233
    pl181_init(0x10005000, drives_table[index].bdrv, sic[22], sic[1]);
234
#if 0
235
    /* Disabled because there's no way of specifying a block device.  */
236
    pl181_init(0x1000b000, NULL, sic, 23, 2);
237
#endif
226
    sysbus_create_varargs("pl181", 0x10005000, sic[22], sic[1], NULL);
227
    sysbus_create_varargs("pl181", 0x1000b000, sic[23], sic[2], NULL);
238 228

  
239 229
    /* Add PL031 Real Time Clock. */
240 230
    sysbus_create_simple("pl031", 0x101e8000, pic[10]);

Also available in: Unified diff