diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-03-28 15:29:48 +0000 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-05-12 10:03:04 -0700 |
commit | 5c53bb812152c3d7919cadfd47c210b181bf89ac (patch) | |
tree | 1e6de84b05aa30c933b709bfb6097dc45b6044d0 /tci.c | |
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>
Diffstat (limited to 'tci.c')
0 files changed, 0 insertions, 0 deletions