qemu-e2k/include/exec
Peter Maydell 378df4b237 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>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2013-03-03 14:28:47 +00:00
..
user
address-spaces.h
cpu-all.h exec: Return CPUState from qemu_get_cpu() 2013-01-15 04:09:14 +01:00
cpu-common.h
cpu-defs.h Replace all setjmp()/longjmp() with sigsetjmp()/siglongjmp() 2013-02-23 16:11:19 +00:00
cputlb.h
def-helper.h
exec-all.h cpu: Move current_tb field to CPUState 2013-02-16 14:51:00 +01:00
gdbstub.h cpu: Move host_tid field to CPUState 2013-02-16 14:50:59 +01:00
gen-icount.h Handle CPU interrupts by inline checking of a flag 2013-03-03 14:28:47 +00:00
hwaddr.h
ioport.h
iorange.h
memory-internal.h
memory.h
poison.h
softmmu_defs.h
softmmu_exec.h
softmmu_header.h
softmmu_template.h
softmmu-semi.h
spinlock.h