aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-01-07 09:45:15 +0100
committerAvi Kivity <avi@redhat.com>2012-01-08 13:10:16 +0200
commit1470a0cdca63d2592b3eab8fd22c9b18d38ce800 (patch)
tree617310f4e5344bda3b7689ac9eeb83e23ed553f6 /memory.c
parent2c3579ab07408b353fe7083bae9469e1485fc8fc (diff)
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 <afaerber@suse.de> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c1
1 files changed, 1 insertions, 0 deletions
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();
}