aboutsummaryrefslogtreecommitdiff
path: root/targphys.h
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 /targphys.h
parentcfb75cb9807463ebe18b127096b48b5d0db1ce03 (diff)
downloadqemu-62724cc5ebd7fb9113f156cbc0d2bb5e3cb0a9ae.zip
qemu-62724cc5ebd7fb9113f156cbc0d2bb5e3cb0a9ae.tar.gz
qemu-62724cc5ebd7fb9113f156cbc0d2bb5e3cb0a9ae.tar.bz2
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 'targphys.h')
0 files changed, 0 insertions, 0 deletions