diff options
author | Andreas Färber <afaerber@suse.de> | 2012-01-07 09:45:15 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-01-08 13:10:16 +0200 |
commit | 1470a0cdca63d2592b3eab8fd22c9b18d38ce800 (patch) | |
tree | 617310f4e5344bda3b7689ac9eeb83e23ed553f6 /memory.c | |
parent | 2c3579ab07408b353fe7083bae9469e1485fc8fc (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -942,6 +942,7 @@ static void adjust_endianness(MemoryRegion *mr, uint64_t *data, unsigned size) break; case 4: *data = bswap32(*data); + break; default: abort(); } |