From 748e49932dfa9f293f60995ca67dd387e942ce05 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sat, 22 Sep 2007 12:09:09 +0000 Subject: [PATCH] Fix breakage on big endian hosts (Aurelien Jarno) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3206 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/iommu.c b/hw/iommu.c index c9b9db5..0ee8c71 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -212,7 +212,7 @@ static uint32_t iommu_page_get_flags(IOMMUState *s, target_phys_addr_t addr) addr &= ~s->iostart; iopte += (addr >> (PAGE_SHIFT - 2)) & ~3; cpu_physical_memory_read(iopte, (uint8_t *)&ret, 4); - bswap32s(&ret); + tswap32s(&ret); DPRINTF("get flags addr " TARGET_FMT_plx " => pte " TARGET_FMT_plx ", *pte = %x\n", pa, iopte, ret); -- 2.7.4