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/tcg-accel-ops-rr.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/tcg-accel-ops-rr.c')
| -rw-r--r-- | accel/tcg/tcg-accel-ops-rr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/tcg-accel-ops-rr.c b/accel/tcg/tcg-accel-ops-rr.c index 4a66055e0d..018b54c508 100644 --- a/accel/tcg/tcg-accel-ops-rr.c +++ b/accel/tcg/tcg-accel-ops-rr.c @@ -269,7 +269,7 @@ void rr_start_vcpu_thread(CPUState *cpu) static QemuThread *single_tcg_cpu_thread; g_assert(tcg_enabled()); - parallel_cpus = false; + tcg_cpu_init_cflags(cpu, false); if (!single_tcg_cpu_thread) { cpu->thread = g_malloc0(sizeof(QemuThread)); |