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 12:08:44 +0200
commit0fdcfc3baf9af2f2e1903eebf23edc9dd8b0aec2 (patch)
tree5971a42cd91213232583e5e5c00c488a4221c432
parent51e189619992a08d529bf580f6bcf074f5a7af0d (diff)
downloadqemu-0fdcfc3baf9af2f2e1903eebf23edc9dd8b0aec2.zip
qemu-0fdcfc3baf9af2f2e1903eebf23edc9dd8b0aec2.tar.gz
qemu-0fdcfc3baf9af2f2e1903eebf23edc9dd8b0aec2.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> 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