diff options
| author | Sergey Fedorov | 2016-04-22 18:08:47 +0200 |
|---|---|---|
| committer | Richard Henderson | 2016-05-13 02:06:41 +0200 |
| commit | 0d07abf05e98903c7faf204a9a90f7d45b7554dc (patch) | |
| tree | 1090615eecc65e59f17b1f236b47495aaecf728e /include/exec/user | |
| parent | tcg/ppc: Make direct jump patching thread-safe (diff) | |
| download | qemu-0d07abf05e98903c7faf204a9a90f7d45b7554dc.tar.gz qemu-0d07abf05e98903c7faf204a9a90f7d45b7554dc.tar.xz qemu-0d07abf05e98903c7faf204a9a90f7d45b7554dc.zip | |
tcg/i386: Make direct jump patching thread-safe
Ensure direct jump patching in i386 is atomic by:
* naturally aligning a location of direct jump address;
* using atomic_read()/atomic_set() for code patching.
tcg_out_nopn() implementation:
Suggested-by: Richard Henderson <rth@twiddle.net>.
Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Message-Id: <1461341333-19646-6-git-send-email-sergey.fedorov@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
