diff options
| author | Paolo Bonzini | 2015-08-18 15:24:34 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2015-09-09 15:34:53 +0200 |
| commit | 9373e63297c43752f9cf085feb7f5aed57d959f8 (patch) | |
| tree | 919c88a38aadb45780cdb143415011e39f63edc9 /include | |
| parent | i8257: remove cpu_request_exit irq (diff) | |
| download | qemu-9373e63297c43752f9cf085feb7f5aed57d959f8.tar.gz qemu-9373e63297c43752f9cf085feb7f5aed57d959f8.tar.xz qemu-9373e63297c43752f9cf085feb7f5aed57d959f8.zip | |
tcg: introduce tcg_current_cpu
This is already useful on Windows in order to remove tls.h, because
accesses to current_cpu are done from a different thread on that
platform. It will be used on POSIX platforms as soon TCG stops using
signals to interrupt the execution of translated code.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/exec/exec-all.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 83b925172f..d5dd48f759 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -387,6 +387,7 @@ tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr); extern int singlestep; /* cpu-exec.c */ +extern CPUState *tcg_current_cpu; extern volatile sig_atomic_t exit_request; #if !defined(CONFIG_USER_ONLY) |
