]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Prefer local AccelState over global current_accel()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Jun 2025 10:29:17 +0000 (12:29 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 4 Jul 2025 10:08:44 +0000 (12:08 +0200)
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>

accel/tcg/tcg-all.c

index d68fbb23773fb7078469efda5fd2278833ab576d..c674d5bcf78e08997537344ca7ecc0b140ff347a 100644 (file)
@@ -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