summaryrefslogtreecommitdiffstats
path: root/hw/iommu.c
diff options
context:
space:
mode:
authorBlue Swirl2009-08-08 22:24:47 +0200
committerBlue Swirl2009-08-08 22:24:47 +0200
commit4b48bf059b2824e09ca8062269b689a20528f16c (patch)
tree6cb03c3605b390f75fcd496948cdbf459d23608a /hw/iommu.c
parentSparc32: Refactor slavio timer (diff)
downloadqemu-4b48bf059b2824e09ca8062269b689a20528f16c.tar.gz
qemu-4b48bf059b2824e09ca8062269b689a20528f16c.tar.xz
qemu-4b48bf059b2824e09ca8062269b689a20528f16c.zip
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.c18
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);