summary refs log tree commit diff stats
path: root/include/tcg/startup.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-04-04 16:30:57 -0700
committerRichard Henderson <richard.henderson@linaro.org>2025-04-23 15:07:32 -0700
commita9d107fa0eacf6c999c042b276e54a7058ae0bf9 (patch)
treee872390b1d2dd88fe5b4e608b1da3ecee2b00c4e /include/tcg/startup.h
parent9638cb59ee3d3a505f4bb6b9a4bcc49c3df4edcc (diff)
downloadfocaccia-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 'include/tcg/startup.h')
-rw-r--r--include/tcg/startup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tcg/startup.h b/include/tcg/startup.h
index f71305765c..95f574af2b 100644
--- a/include/tcg/startup.h
+++ b/include/tcg/startup.h
@@ -29,12 +29,12 @@
  * tcg_init: Initialize the TCG runtime
  * @tb_size: translation buffer size
  * @splitwx: use separate rw and rx mappings
- * @max_cpus: number of vcpus in system mode
+ * @max_threads: number of vcpu threads in system mode
  *
  * Allocate and initialize TCG resources, especially the JIT buffer.
- * In user-only mode, @max_cpus is unused.
+ * In user-only mode, @max_threads is unused.
  */
-void tcg_init(size_t tb_size, int splitwx, unsigned max_cpus);
+void tcg_init(size_t tb_size, int splitwx, unsigned max_threads);
 
 /**
  * tcg_register_thread: Register this thread with the TCG runtime