diff options
author | Sergey Fedorov <serge.fdrv@gmail.com> | 2016-04-22 19:08:47 +0300 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2016-05-12 14:06:41 -1000 |
commit | 0d07abf05e98903c7faf204a9a90f7d45b7554dc (patch) | |
tree | 1090615eecc65e59f17b1f236b47495aaecf728e /net/tap-linux.c | |
parent | 399f1648573d49b9411089e4e2ea62b6357b166e (diff) | |
download | 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 'net/tap-linux.c')
0 files changed, 0 insertions, 0 deletions