mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
tcg: Pass max_threads not max_cpus to tcg_init
In effect, hoist the check for mttcg from tcg_n_regions() to tcg_init_machine(). Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
9638cb59ee
commit
a9d107fa0e
5 changed files with 31 additions and 32 deletions
|
@ -34,7 +34,7 @@ extern TCGContext **tcg_ctxs;
|
|||
extern unsigned int tcg_cur_ctxs;
|
||||
extern unsigned int tcg_max_ctxs;
|
||||
|
||||
void tcg_region_init(size_t tb_size, int splitwx, unsigned max_cpus);
|
||||
void tcg_region_init(size_t tb_size, int splitwx, unsigned max_threads);
|
||||
bool tcg_region_alloc(TCGContext *s);
|
||||
void tcg_region_initial_alloc(TCGContext *s);
|
||||
void tcg_region_prologue_set(TCGContext *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue