summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-05-24 17:58:37 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-05-29 16:27:26 +0200
commit968a5627c80ff2b9fd1ed40f9400897088bd661a (patch)
tree5988478db3307611ed43d2ce5f50f4136861be98 /memory.c
parentce5d2f331ec42b43f92aa4c57fdaaf4c34ccb377 (diff)
downloadqemu-968a5627c80ff2b9fd1ed40f9400897088bd661a.tar.gz
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/memory.c b/memory.c
index ca2710214a..f84fc53d4a 100644
--- a/memory.c
+++ b/memory.c
@@ -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();
}