mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
accel/tcg: Precompute curr_cflags into cpu->tcg_cflags
The primary motivation is to remove a dozen insns along the fast-path in tb_lookup. As a byproduct, this allows us to completely remove parallel_cpus. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
872ebd884d
commit
6cc9d67c6f
11 changed files with 30 additions and 27 deletions
|
@ -205,6 +205,7 @@ CPUArchState *cpu_copy(CPUArchState *env)
|
|||
/* Reset non arch specific state */
|
||||
cpu_reset(new_cpu);
|
||||
|
||||
new_cpu->tcg_cflags = cpu->tcg_cflags;
|
||||
memcpy(new_env, env, sizeof(CPUArchState));
|
||||
|
||||
/* Clone all break/watchpoints.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue