diff options
author | Paul Brook | 2009-05-14 23:35:07 +0200 |
---|---|---|
committer | Paul Brook | 2009-05-14 23:35:07 +0200 |
commit | 6a824ec3d2e3d9b061c31aa14535eb7e08a6846c (patch) | |
tree | 162f5a5ed40d3223d204f4f06a48813d948174eb /hw/integratorcp.c | |
parent | Integrator/CP core qdev conversion (diff) | |
download | qemu-6a824ec3d2e3d9b061c31aa14535eb7e08a6846c.tar.gz qemu-6a824ec3d2e3d9b061c31aa14535eb7e08a6846c.tar.xz qemu-6a824ec3d2e3d9b061c31aa14535eb7e08a6846c.zip |
ARM timers qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/integratorcp.c')
-rw-r--r-- | hw/integratorcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 2b606e7d5e..ee733fbc23 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -486,8 +486,9 @@ static void integratorcp_init(ram_addr_t ram_size, for (i = 0; i < 32; i++) { pic[i] = qdev_get_irq_sink(dev, i); } - dev = sysbus_create_simple("integrator_pic", 0xca000000, pic[26]); - icp_pit_init(0x13000000, pic, 5); + sysbus_create_simple("integrator_pic", 0xca000000, pic[26]); + sysbus_create_varargs("integrator_pit", 0x13000000, + pic[5], pic[6], pic[7], NULL); sysbus_create_simple("pl031", 0x15000000, pic[8]); sysbus_create_simple("pl011", 0x16000000, pic[1]); sysbus_create_simple("pl011", 0x17000000, pic[2]); |