From 1470a0cdca63d2592b3eab8fd22c9b18d38ce800 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20F=C3=A4rber?= Date: Sat, 7 Jan 2012 09:45:15 +0100 Subject: [PATCH] memory: Fix adjust_endianness() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- memory.c | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.11.4.GIT