diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2021-03-01 19:21:08 -0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2021-03-06 11:53:57 -0800 |
| commit | 6cc9d67c6f682cf04eea2d6e64a252b63a7eccdf (patch) | |
| tree | f4a70ec6c66bcb37242891c9b544508b78f5a726 /accel/tcg/cpu-exec.c | |
| parent | 872ebd884dd68ecef4c6f9f86c5da519f18bd31e (diff) | |
| download | focaccia-qemu-6cc9d67c6f682cf04eea2d6e64a252b63a7eccdf.tar.gz focaccia-qemu-6cc9d67c6f682cf04eea2d6e64a252b63a7eccdf.zip | |
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>
Diffstat (limited to 'accel/tcg/cpu-exec.c')
| -rw-r--r-- | accel/tcg/cpu-exec.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index 931da96c2b..bdfa036ac8 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -267,8 +267,6 @@ void cpu_exec_step_atomic(CPUState *cpu) mmap_unlock(); } - /* Since we got here, we know that parallel_cpus must be true. */ - parallel_cpus = false; cpu_exec_enter(cpu); /* execute the generated code */ trace_exec_tb(tb, pc); @@ -296,7 +294,6 @@ void cpu_exec_step_atomic(CPUState *cpu) * the execution. */ g_assert(cpu_in_exclusive_context(cpu)); - parallel_cpus = true; cpu->running = false; end_exclusive(); } |