From: Andreas Färber Date: Sat, 7 Jan 2012 08:45:15 +0000 (+0100) Subject: memory: Fix adjust_endianness() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1470a0cdca63d2592b3eab8fd22c9b18d38ce800;p=qemu.git memory: Fix adjust_endianness() Commit a621f38de85598a13d8d8524d1a94fc6a1818215 (Direct dispatch through MemoryRegion) moved byte swaps to a central function. Add a missing break, so that long-sized byte swaps don't abort. Signed-off-by: Andreas Färber Reviewed-by: Aurelien Jarno Signed-off-by: Avi Kivity --- diff --git a/memory.c b/memory.c index 5e55a9019e..5ab21129a0 100644 --- a/memory.c +++ b/memory.c @@ -942,6 +942,7 @@ static void adjust_endianness(MemoryRegion *mr, uint64_t *data, unsigned size) break; case 4: *data = bswap32(*data); + break; default: abort(); }