From 05f3fb8de34098a1ff08c30e8a3d575c6f6f2cae Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 30 Oct 2005 19:34:15 +0000 Subject: [PATCH] endianness fix git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1586 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/iommu.c b/hw/iommu.c index 6defe61..e7d96c8 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -194,8 +194,7 @@ uint32_t iommu_translate_local(void *opaque, uint32_t addr) iopte = s->regs[1] << 4; addr &= ~s->iostart; iopte += (addr >> (PAGE_SHIFT - 2)) & ~3; - cpu_physical_memory_read(iopte, (void *) &pa, 4); - bswap32s(&pa); + pa = ldl_phys(iopte); tmppte = pa; pa = ((pa & IOPTE_PAGE) << 4) + (addr & PAGE_MASK); DPRINTF("xlate dva %x => pa %x (iopte[%x] = %x)\n", addr, pa, iopte, tmppte); -- 2.7.4