Revision aa9311d8 hw/realview.c
b/hw/realview.c | ||
---|---|---|
38 | 38 |
int done_smc = 0; |
39 | 39 |
qemu_irq cpu_irq[4]; |
40 | 40 |
int ncpu; |
41 |
int index; |
|
42 | 41 |
|
43 | 42 |
if (!cpu_model) |
44 | 43 |
cpu_model = "arm926"; |
... | ... | |
97 | 96 |
|
98 | 97 |
sysbus_create_simple("pl110_versatile", 0x10020000, pic[23]); |
99 | 98 |
|
100 |
index = drive_get_index(IF_SD, 0, 0); |
|
101 |
if (index == -1) { |
|
102 |
fprintf(stderr, "qemu: missing SecureDigital card\n"); |
|
103 |
exit(1); |
|
104 |
} |
|
105 |
pl181_init(0x10005000, drives_table[index].bdrv, pic[17], pic[18]); |
|
99 |
sysbus_create_varargs("pl181", 0x10005000, pic[17], pic[18], NULL); |
|
106 | 100 |
|
107 | 101 |
sysbus_create_simple("pl031", 0x10017000, pic[10]); |
108 | 102 |
|
Also available in: Unified diff