aboutsummaryrefslogtreecommitdiff
path: root/target-s390x/translate.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-02-22 14:04:28 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-02-22 14:04:28 +0000
commitf80f8f3fb395c4eb16ede2b22879db8cf90f15e7 (patch)
tree6a682ebd8859da429029f325cd82e62a34e953bf /target-s390x/translate.c
parent3f7535b385b646e81256db7c7b6d13871301fada (diff)
Handle CPU interrupts by inline checking of a flag
Fix some of the nasty TCG race conditions and crashes by implementing cpu_exit() as setting a flag which is checked at the start of each TB. This avoids crashes if a thread or signal handler calls cpu_exit() while the execution thread is itself modifying the TB graph (which may happen in system emulation mode as well as in linux-user mode with a multithreaded guest binary). This fixes the crashes seen in LP:668799; however there are another class of crashes described in LP:1098729 which stem from the fact that in linux-user with a multithreaded guest all threads will use and modify the same global TCG date structures (including the generated code buffer) without any kind of locking. This means that multithreaded guest binaries are still in the "unsupported" category. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-s390x/translate.c')
0 files changed, 0 insertions, 0 deletions