commit | 5c53bb812152c3d7919cadfd47c210b181bf89ac | [log] [tgz] |
---|---|---|
author | Peter Maydell <peter.maydell@linaro.org> | Fri Mar 28 15:29:48 2014 +0000 |
committer | Richard Henderson <rth@twiddle.net> | Mon May 12 10:03:04 2014 -0700 |
tree | 1e6de84b05aa30c933b709bfb6097dc45b6044d0 | |
parent | 4387345a962284c77435a9644d528d2356adecc5 [diff] |
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>