From 4b48bf059b2824e09ca8062269b689a20528f16c Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 8 Aug 2009 20:24:47 +0000 Subject: Sparc32: move device instantiation to sun4m.c Signed-off-by: Blue Swirl --- hw/slavio_intctl.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'hw/slavio_intctl.c') diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index 188511e84f..8eea6f94af 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -416,35 +416,6 @@ static void slavio_intctl_init1(SysBusDevice *dev) slavio_intctl_reset(s); } -DeviceState *slavio_intctl_init(target_phys_addr_t addr, - target_phys_addr_t addrg, - const uint32_t *intbit_to_level, - qemu_irq **parent_irq, unsigned int cputimer) -{ - DeviceState *dev; - SysBusDevice *s; - unsigned int i, j; - - dev = qdev_create(NULL, "slavio_intctl"); - qdev_prop_set_ptr(dev, "intbit_to_level", (void *)intbit_to_level); - qdev_prop_set_uint32(dev, "cputimer_bit", cputimer); - qdev_init(dev); - - s = sysbus_from_qdev(dev); - - for (i = 0; i < MAX_CPUS; i++) { - for (j = 0; j < MAX_PILS; j++) { - sysbus_connect_irq(s, i * MAX_PILS + j, parent_irq[i][j]); - } - } - sysbus_mmio_map(s, 0, addrg); - for (i = 0; i < MAX_CPUS; i++) { - sysbus_mmio_map(s, i + 1, addr + i * TARGET_PAGE_SIZE); - } - - return dev; -} - static SysBusDeviceInfo slavio_intctl_info = { .init = slavio_intctl_init1, .qdev.name = "slavio_intctl", -- cgit v1.2.3