diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-11-01 10:09:54 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-12-20 17:09:41 -0800 |
commit | bf590a67dd7a92de89f5297fe87e48ad21f96194 (patch) | |
tree | 1eac29b72b9951b7272b3d91117973c0f59c3326 /accel/tcg | |
parent | 0d99d37a82f267395e97db2ece9b3880597253b2 (diff) | |
download | qemu-bf590a67dd7a92de89f5297fe87e48ad21f96194.zip qemu-bf590a67dd7a92de89f5297fe87e48ad21f96194.tar.gz qemu-bf590a67dd7a92de89f5297fe87e48ad21f96194.tar.bz2 |
accel/tcg: Rename page_flush_tb
Rename to tb_remove_all, to remove the PageDesc "page" from the name,
and to avoid suggesting a "flush" in the icache sense.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg')
-rw-r--r-- | accel/tcg/tb-maint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c index 0cdb355..b5b9034 100644 --- a/accel/tcg/tb-maint.c +++ b/accel/tcg/tb-maint.c @@ -51,7 +51,7 @@ void tb_htable_init(void) } /* Set to NULL all the 'first_tb' fields in all PageDescs. */ -static void page_flush_tb_1(int level, void **lp) +static void tb_remove_all_1(int level, void **lp) { int i; @@ -70,17 +70,17 @@ static void page_flush_tb_1(int level, void **lp) void **pp = *lp; for (i = 0; i < V_L2_SIZE; ++i) { - page_flush_tb_1(level - 1, pp + i); + tb_remove_all_1(level - 1, pp + i); } } } -static void page_flush_tb(void) +static void tb_remove_all(void) { int i, l1_sz = v_l1_size; for (i = 0; i < l1_sz; i++) { - page_flush_tb_1(v_l2_levels, l1_map + i); + tb_remove_all_1(v_l2_levels, l1_map + i); } } @@ -101,7 +101,7 @@ static void do_tb_flush(CPUState *cpu, run_on_cpu_data tb_flush_count) } qht_reset_size(&tb_ctx.htable, CODE_GEN_HTABLE_SIZE); - page_flush_tb(); + tb_remove_all(); tcg_region_reset_all(); /* XXX: flush processor icache at this point if cache flush is expensive */ |