+15
−32
Loading
When host and target have differing alignment rules, using a cast and direct memory operation can result in SIGBUS. Use memcpy instead, which the compiler will happily optimize when alignment is satisfied. Signed-off-by:Richard Henderson <rth@twiddle.net> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org>