diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-22 12:09:09 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-22 12:09:09 +0000 |
commit | 748e49932dfa9f293f60995ca67dd387e942ce05 (patch) | |
tree | 0222181a0627834cef6a539b83c48bc4abe69fc7 /hw | |
parent | 81ad8ba242815e27f990e18778c7cdca2e7e7522 (diff) | |
download | qemu-748e49932dfa9f293f60995ca67dd387e942ce05.zip qemu-748e49932dfa9f293f60995ca67dd387e942ce05.tar.gz qemu-748e49932dfa9f293f60995ca67dd387e942ce05.tar.bz2 |
Fix breakage on big endian hosts (Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3206 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |