aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-06 12:29:17 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-04 15:22:04 +0200
commit7bdeb984cd3a382ec2b22b8b8c4a5207c316482f (patch)
tree0cd72574a2f885b773551b19e11693565ed568fa
parentd8878e4fcaf3dfe591b18a06760831c041402d15 (diff)
downloadqemu-7bdeb984cd3a382ec2b22b8b8c4a5207c316482f.zip
qemu-7bdeb984cd3a382ec2b22b8b8c4a5207c316482f.tar.gz
qemu-7bdeb984cd3a382ec2b22b8b8c4a5207c316482f.tar.bz2
accel/tcg: Prefer local AccelState over global current_accel()
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-33-philmd@linaro.org>
-rw-r--r--accel/tcg/tcg-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c
index d68fbb2..c674d5b 100644
--- a/accel/tcg/tcg-all.c
+++ b/accel/tcg/tcg-all.c
@@ -82,7 +82,7 @@ bool one_insn_per_tb;
static int tcg_init_machine(AccelState *as, MachineState *ms)
{
- TCGState *s = TCG_STATE(current_accel());
+ TCGState *s = TCG_STATE(as);
unsigned max_threads = 1;
#ifndef CONFIG_USER_ONLY