mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
accel: Propagate AccelState to AccelClass::init_machine()
In order to avoid init_machine() to call current_accel(), pass AccelState along. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250703173248.44995-31-philmd@linaro.org>
This commit is contained in:
parent
38623a9f63
commit
51e1896199
11 changed files with 11 additions and 11 deletions
|
@ -474,7 +474,7 @@ int main(int argc, char **argv)
|
|||
opt_one_insn_per_tb, &error_abort);
|
||||
object_property_set_int(OBJECT(accel), "tb-size",
|
||||
opt_tb_size, &error_abort);
|
||||
ac->init_machine(NULL);
|
||||
ac->init_machine(accel, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue