summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell2014-03-28 16:29:48 +0100
committerRichard Henderson2014-05-12 19:03:04 +0200
commit5c53bb812152c3d7919cadfd47c210b181bf89ac (patch)
tree1e6de84b05aa30c933b709bfb6097dc45b6044d0 /include
parenttcg: Avoid stores to unaligned addresses (diff)
downloadqemu-5c53bb812152c3d7919cadfd47c210b181bf89ac.tar.gz
qemu-5c53bb812152c3d7919cadfd47c210b181bf89ac.tar.xz
qemu-5c53bb812152c3d7919cadfd47c210b181bf89ac.zip
tcg: Avoid undefined behaviour patching code at unaligned addresses
To avoid C undefined behaviour when patching generated code, provide wrappers tcg_patch8/16/32/64 which use the usual memcpy trick, and use them in the i386 backend. 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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions