diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-03-09 23:06:32 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-06-11 09:27:08 -0700 |
commit | 0e2d61cf29833f8984e7421a74eb0a4f921f92b5 (patch) | |
tree | 34e51645c3f4f6f92d2159d00fe7a8971d975221 /tcg/tcg-internal.h | |
parent | 43b972b7ebe9b8e84aa535031de7e605f6bf2cb2 (diff) | |
download | qemu-0e2d61cf29833f8984e7421a74eb0a4f921f92b5.zip qemu-0e2d61cf29833f8984e7421a74eb0a4f921f92b5.tar.gz qemu-0e2d61cf29833f8984e7421a74eb0a4f921f92b5.tar.bz2 |
tcg: Introduce tcg_max_ctxs
Finish the divorce of tcg/ from hw/, and do not take
the max cpu value from MachineState; just remember what
we were passed in tcg_init.
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 'tcg/tcg-internal.h')
-rw-r--r-- | tcg/tcg-internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/tcg-internal.h b/tcg/tcg-internal.h index fcfeca2..f990652 100644 --- a/tcg/tcg-internal.h +++ b/tcg/tcg-internal.h @@ -28,7 +28,8 @@ #define TCG_HIGHWATER 1024 extern TCGContext **tcg_ctxs; -extern unsigned int n_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); bool tcg_region_alloc(TCGContext *s); |