mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
43b972b7eb
commit
0e2d61cf29
3 changed files with 15 additions and 17 deletions
|
@ -347,7 +347,7 @@ void tcg_region_initial_alloc(TCGContext *s)
|
|||
/* Call from a safe-work context */
|
||||
void tcg_region_reset_all(void)
|
||||
{
|
||||
unsigned int n_ctxs = qatomic_read(&n_tcg_ctxs);
|
||||
unsigned int n_ctxs = qatomic_read(&tcg_cur_ctxs);
|
||||
unsigned int i;
|
||||
|
||||
qemu_mutex_lock(®ion.lock);
|
||||
|
@ -934,7 +934,7 @@ void tcg_region_prologue_set(TCGContext *s)
|
|||
*/
|
||||
size_t tcg_code_size(void)
|
||||
{
|
||||
unsigned int n_ctxs = qatomic_read(&n_tcg_ctxs);
|
||||
unsigned int n_ctxs = qatomic_read(&tcg_cur_ctxs);
|
||||
unsigned int i;
|
||||
size_t total;
|
||||
|
||||
|
@ -970,7 +970,7 @@ size_t tcg_code_capacity(void)
|
|||
|
||||
size_t tcg_tb_phys_invalidate_count(void)
|
||||
{
|
||||
unsigned int n_ctxs = qatomic_read(&n_tcg_ctxs);
|
||||
unsigned int n_ctxs = qatomic_read(&tcg_cur_ctxs);
|
||||
unsigned int i;
|
||||
size_t total = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue