mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
accel/tcg: Pass down max_cpus to tcg_init
Start removing the include of hw/boards.h from tcg/. Pass down the max_cpus value from tcg_init_machine, where we have the MachineState already. Reviewed-by: Luis Pires <luis.pires@eldorado.org.br> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
efba8ae9f6
commit
43b972b7eb
5 changed files with 26 additions and 30 deletions
|
@ -905,7 +905,7 @@ static inline void *tcg_malloc(int size)
|
|||
}
|
||||
}
|
||||
|
||||
void tcg_init(size_t tb_size, int splitwx);
|
||||
void tcg_init(size_t tb_size, int splitwx, unsigned max_cpus);
|
||||
void tcg_register_thread(void);
|
||||
void tcg_prologue_init(TCGContext *s);
|
||||
void tcg_func_start(TCGContext *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue