summaryrefslogtreecommitdiff
path: root/tcg/sparc
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-03-24 21:31:25 +0100
committerRichard Henderson <rth@twiddle.net>2012-09-21 22:02:15 +0200
commit62724cc5ebd7fb9113f156cbc0d2bb5e3cb0a9ae (patch)
tree264a6d37e963318a07ab782c7aea863c7578167e /tcg/sparc
parentcfb75cb9807463ebe18b127096b48b5d0db1ce03 (diff)
downloadqemu-62724cc5ebd7fb9113f156cbc0d2bb5e3cb0a9ae.tar.gz
linux-user: Use memcpy in get_user/put_user.
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>
Diffstat (limited to 'tcg/sparc')
0 files changed, 0 insertions, 0 deletions