tcg: Avoid stores to unaligned addresses
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Mar 2014 15:29:47 +0000 (15:29 +0000)
committerRichard Henderson <rth@twiddle.net>
Mon, 12 May 2014 17:03:04 +0000 (10:03 -0700)
commit4387345a962284c77435a9644d528d2356adecc5
tree7f87db3e24c4a169ad573472dd9413cf88ed1a5a
parent86360ad71df0070283469b8ae59f33cdd013501d
tcg: Avoid stores to unaligned addresses

Avoid stores to unaligned addresses in TCG code generation, by using the
usual memcpy() approach. (Using bswap.h would drag a lot of QEMU baggage
into TCG, so it's simpler just to do direct memcpy() here.)

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c