Commit 748e49932dfa9f293f60995ca67dd387e942ce05
1 parent
81ad8ba2
Fix breakage on big endian hosts (Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3206 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/iommu.c
... | ... | @@ -212,7 +212,7 @@ static uint32_t iommu_page_get_flags(IOMMUState *s, target_phys_addr_t addr) |
212 | 212 | addr &= ~s->iostart; |
213 | 213 | iopte += (addr >> (PAGE_SHIFT - 2)) & ~3; |
214 | 214 | cpu_physical_memory_read(iopte, (uint8_t *)&ret, 4); |
215 | - bswap32s(&ret); | |
215 | + tswap32s(&ret); | |
216 | 216 | DPRINTF("get flags addr " TARGET_FMT_plx " => pte " TARGET_FMT_plx |
217 | 217 | ", *pte = %x\n", pa, iopte, ret); |
218 | 218 | ... | ... |