diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2017-02-23 18:29:10 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2017-02-24 10:32:45 +0000 |
commit | 791158d93b27f22a17c2ada06621831d54f09a2c (patch) | |
tree | 7ca792b10da6cfd7970f334436520f4cc2d425dd /include/exec | |
parent | 6546706d28bbcec5c14601b446c0a1cde5256597 (diff) | |
download | qemu-791158d93b27f22a17c2ada06621831d54f09a2c.zip qemu-791158d93b27f22a17c2ada06621831d54f09a2c.tar.gz qemu-791158d93b27f22a17c2ada06621831d54f09a2c.tar.bz2 |
tcg: rename tcg_current_cpu to tcg_current_rr_cpu
..and make the definition local to cpus. In preparation for MTTCG the
concept of a global tcg_current_cpu will no longer make sense. However
we still need to keep track of it in the single-threaded case to be able
to exit quickly when required.
qemu_cpu_kick_no_halt() moves and becomes qemu_cpu_kick_rr_cpu() to
emphasise its use-case. qemu_cpu_kick now kicks the relevant cpu as
well as qemu_kick_rr_cpu() which will become a no-op in MTTCG.
For the time being the setting of the global exit_request remains.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/exec-all.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 21ab7bf..4e34fc4 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -405,7 +405,6 @@ bool memory_region_is_unassigned(MemoryRegion *mr); extern int singlestep; /* cpu-exec.c, accessed with atomic_mb_read/atomic_mb_set */ -extern CPUState *tcg_current_cpu; extern bool exit_request; #endif |