]> git.proxmox.com Git - mirror_qemu.git/commitdiff
omap_l4: remove omap_l4_attach()
authorAvi Kivity <avi@redhat.com>
Mon, 28 Nov 2011 13:37:30 +0000 (15:37 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 28 Nov 2011 13:38:47 +0000 (15:38 +0200)
No longer used.

Signed-off-by: Avi Kivity <avi@redhat.com>
hw/omap.h
hw/omap_l4.c

index 0724ffedb54768a54fa61c42a5f11e763133ead2..656251d34e768553f184bc14e5a564837995b63e 100644 (file)
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -94,8 +94,6 @@ struct omap_target_agent_s *omap_l4ta_get(
     const struct omap_l4_region_s *regions,
     const struct omap_l4_agent_info_s *agents,
     int cs);
-target_phys_addr_t omap_l4_attach(struct omap_target_agent_s *ta, int region,
-                int iotype);
 target_phys_addr_t omap_l4_attach_region(struct omap_target_agent_s *ta,
                                          int region, MemoryRegion *mr);
 target_phys_addr_t omap_l4_region_base(struct omap_target_agent_s *ta,
index cf4b971f22776d58508351e3bd86effc2af86fc8..78f02d993ed1860ad2797e49033473ce9eff703c 100644 (file)
@@ -143,26 +143,6 @@ struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus,
     return ta;
 }
 
-target_phys_addr_t omap_l4_attach(struct omap_target_agent_s *ta, int region,
-                int iotype)
-{
-    target_phys_addr_t base;
-    ssize_t size;
-
-    if (region < 0 || region >= ta->regions) {
-        fprintf(stderr, "%s: bad io region (%i)\n", __FUNCTION__, region);
-        exit(-1);
-    }
-
-    base = ta->bus->base + ta->start[region].offset;
-    size = ta->start[region].size;
-    if (iotype) {
-        cpu_register_physical_memory(base, size, iotype);
-    }
-
-    return base;
-}
-
 target_phys_addr_t omap_l4_attach_region(struct omap_target_agent_s *ta,
                                          int region, MemoryRegion *mr)
 {