aboutsummaryrefslogtreecommitdiff
path: root/hw/realview.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-14 22:35:07 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-14 22:35:07 +0100
commitaa9311d8cbd6250b9443b0f12b85d8176ec057ca (patch)
tree52c978c711b9c2b1bd0f2738a7389fdda8623d41 /hw/realview.c
parenta63bdb31026648fef5d4ffb3caafc973c8ced53c (diff)
PL181 qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/realview.c')
-rw-r--r--hw/realview.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/realview.c b/hw/realview.c
index 4001a0f28b..e54918b2ab 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -38,7 +38,6 @@ static void realview_init(ram_addr_t ram_size,
int done_smc = 0;
qemu_irq cpu_irq[4];
int ncpu;
- int index;
if (!cpu_model)
cpu_model = "arm926";
@@ -97,12 +96,7 @@ static void realview_init(ram_addr_t ram_size,
sysbus_create_simple("pl110_versatile", 0x10020000, pic[23]);
- index = drive_get_index(IF_SD, 0, 0);
- if (index == -1) {
- fprintf(stderr, "qemu: missing SecureDigital card\n");
- exit(1);
- }
- pl181_init(0x10005000, drives_table[index].bdrv, pic[17], pic[18]);
+ sysbus_create_varargs("pl181", 0x10005000, pic[17], pic[18], NULL);
sysbus_create_simple("pl031", 0x10017000, pic[10]);