From 968a5627c80ff2b9fd1ed40f9400897088bd661a Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 24 May 2013 17:58:37 +0200 Subject: memory: correctly handle endian-swapped 64-bit accesses Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- memory.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'memory.c') 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(); } -- cgit v1.2.1