]> git.proxmox.com Git - mirror_qemu.git/commit - tci.c
tci: Make direct jump patching thread-safe
authorSergey Fedorov <serge.fdrv@gmail.com>
Fri, 22 Apr 2016 16:08:45 +0000 (19:08 +0300)
committerRichard Henderson <rth@twiddle.net>
Fri, 13 May 2016 00:06:40 +0000 (14:06 -1000)
commit76442a939ef8fc062b35a890a824de203bb5bd5f
tree3bfd290f9dd64655502b2ef9fc16c60172ed30dc
parent6b587d3cda48e7ba26de8d30bf0d8a7063970715
tci: Make direct jump patching thread-safe

Ensure direct jump patching in TCI is atomic by:
 * naturally aligning a location of direct jump address;
 * using atomic_read()/atomic_set() to load/store the address.

Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Message-Id: <1461341333-19646-4-git-send-email-sergey.fedorov@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
include/exec/exec-all.h
tcg/tci/tcg-target.inc.c
tci.c