diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-24 17:58:37 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-29 16:27:26 +0200 |
commit | 968a5627c80ff2b9fd1ed40f9400897088bd661a (patch) | |
tree | 5988478db3307611ed43d2ce5f50f4136861be98 /memory.c | |
parent | ce5d2f331ec42b43f92aa4c57fdaaf4c34ccb377 (diff) |
memory: correctly handle endian-swapped 64-bit accesses
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r-- | memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -957,6 +957,9 @@ static void adjust_endianness(MemoryRegion *mr, uint64_t *data, unsigned size) case 4: *data = bswap32(*data); break; + case 8: + *data = bswap64(*data); + break; default: abort(); } |