mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
51e1896199
commit
0fdcfc3baf
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ bool one_insn_per_tb;
|
||||||
|
|
||||||
static int tcg_init_machine(AccelState *as, MachineState *ms)
|
static int tcg_init_machine(AccelState *as, MachineState *ms)
|
||||||
{
|
{
|
||||||
TCGState *s = TCG_STATE(current_accel());
|
TCGState *s = TCG_STATE(as);
|
||||||
unsigned max_threads = 1;
|
unsigned max_threads = 1;
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue