diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-08 20:24:47 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-08 20:24:47 +0000 |
commit | 4b48bf059b2824e09ca8062269b689a20528f16c (patch) | |
tree | 6cb03c3605b390f75fcd496948cdbf459d23608a /hw/iommu.c | |
parent | 7204ff9c792e47339ea506ea1466e9f5c36f63b2 (diff) |
Sparc32: move device instantiation to sun4m.c
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/iommu.c')
-rw-r--r-- | hw/iommu.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/hw/iommu.c b/hw/iommu.c index d73dad3e19..585be8d3d8 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -366,24 +366,6 @@ static void iommu_reset(void *opaque) s->regs[IOMMU_MASK_ID] = IOMMU_TS_MASK; } -void *iommu_init(target_phys_addr_t addr, uint32_t version, qemu_irq irq) -{ - DeviceState *dev; - SysBusDevice *s; - IOMMUState *d; - - dev = qdev_create(NULL, "iommu"); - qdev_prop_set_uint32(dev, "version", version); - qdev_init(dev); - s = sysbus_from_qdev(dev); - sysbus_connect_irq(s, 0, irq); - sysbus_mmio_map(s, 0, addr); - - d = FROM_SYSBUS(IOMMUState, s); - - return d; -} - static void iommu_init1(SysBusDevice *dev) { IOMMUState *s = FROM_SYSBUS(IOMMUState, dev); |