aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-10-30 19:34:15 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-10-30 19:34:15 +0000
commit05f3fb8de34098a1ff08c30e8a3d575c6f6f2cae (patch)
tree4d20d0821f9330da3ee5fdb569053f3d70157b7c /hw
parent6f5f11a5bc1183f00847695d543a327af4e6c87c (diff)
endianness fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1586 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/iommu.c b/hw/iommu.c
index 6defe61caf..e7d96c81cc 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);