diff options
author | Richard Henderson | 2021-03-10 05:52:45 +0100 |
---|---|---|
committer | Richard Henderson | 2021-06-11 18:27:08 +0200 |
commit | 43b972b7ebe9b8e84aa535031de7e605f6bf2cb2 (patch) | |
tree | cc1d8a122b43510682c1430134cafccbabe0edaf /include/tcg | |
parent | accel/tcg: Use MiB in tcg_init_machine (diff) | |
download | qemu-43b972b7ebe9b8e84aa535031de7e605f6bf2cb2.tar.gz qemu-43b972b7ebe9b8e84aa535031de7e605f6bf2cb2.tar.xz qemu-43b972b7ebe9b8e84aa535031de7e605f6bf2cb2.zip |
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>
Diffstat (limited to 'include/tcg')
-rw-r--r-- | include/tcg/tcg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index b3304ce095..2316a64139 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -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); |