memory: Fix adjust_endianness()

Commit a621f38de8 (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>
This commit is contained in:
Andreas Färber 2012-01-07 09:45:15 +01:00 committed by Avi Kivity
parent 2c3579ab07
commit 1470a0cdca

View File

@ -942,6 +942,7 @@ static void adjust_endianness(MemoryRegion *mr, uint64_t *data, unsigned size)
break;
case 4:
*data = bswap32(*data);
break;
default:
abort();
}