From 1470a0cdca63d2592b3eab8fd22c9b18d38ce800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 7 Jan 2012 09:45:15 +0100 Subject: memory: Fix adjust_endianness() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(+) (limited to 'memory.c') diff --git a/memory.c b/memory.c index 5e55a9019..5ab21129a 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(); } -- cgit v1.2.3