summaryrefslogtreecommitdiff
path: root/hw/slavio_intctl.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-08 20:24:47 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-08 20:24:47 +0000
commit4b48bf059b2824e09ca8062269b689a20528f16c (patch)
tree6cb03c3605b390f75fcd496948cdbf459d23608a /hw/slavio_intctl.c
parent7204ff9c792e47339ea506ea1466e9f5c36f63b2 (diff)
Sparc32: move device instantiation to sun4m.c
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/slavio_intctl.c')
-rw-r--r--hw/slavio_intctl.c29
1 files changed, 0 insertions, 29 deletions
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",