aboutsummaryrefslogtreecommitdiff
path: root/hw/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/iommu.c')
-rw-r--r--hw/iommu.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/hw/iommu.c b/hw/iommu.c
index 83001bd7f1..5c2768cee3 100644
--- a/hw/iommu.c
+++ b/hw/iommu.c
@@ -206,19 +206,11 @@ static uint32_t iommu_translate_pa(IOMMUState *s, uint32_t addr, uint32_t pa)
return pa;
}
-uint32_t iommu_translate_local(void *opaque, uint32_t addr)
-{
- uint32_t flags;
- flags = iommu_page_get_flags(opaque, addr);
- return iommu_translate_pa(opaque, addr, flags);
-}
-
-void sparc_iommu_memory_rw_local(void *opaque, target_phys_addr_t addr,
- uint8_t *buf, int len, int is_write)
+void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr,
+ uint8_t *buf, int len, int is_write)
{
int l, flags;
target_ulong page, phys_addr;
- void * p;
while (len > 0) {
page = addr & TARGET_PAGE_MASK;