diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-04-04 16:30:57 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-23 15:07:32 -0700 |
| commit | a9d107fa0eacf6c999c042b276e54a7058ae0bf9 (patch) | |
| tree | e872390b1d2dd88fe5b4e608b1da3ecee2b00c4e /tcg/tcg-internal.h | |
| parent | 9638cb59ee3d3a505f4bb6b9a4bcc49c3df4edcc (diff) | |
| download | focaccia-qemu-a9d107fa0eacf6c999c042b276e54a7058ae0bf9.tar.gz focaccia-qemu-a9d107fa0eacf6c999c042b276e54a7058ae0bf9.zip | |
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>
Diffstat (limited to 'tcg/tcg-internal.h')
| -rw-r--r-- | tcg/tcg-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg-internal.h b/tcg/tcg-internal.h index a648ee7a0e..ff85fb23fa 100644 --- a/tcg/tcg-internal.h +++ b/tcg/tcg-internal.h @@ -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); |