[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/13] accel/tcg: Rename page_flush_tb
From: |
Richard Henderson |
Subject: |
[PULL 02/13] accel/tcg: Rename page_flush_tb |
Date: |
Fri, 16 Dec 2022 10:52:54 -0800 |
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>
---
accel/tcg/tb-maint.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c
index 0cdb35548c..b5b90347ae 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 */
--
2.34.1
- [PULL 00/13] accel/tcg: Rewrite user-only vma tracking, Richard Henderson, 2022/12/16
- [PULL 01/13] util: Add interval-tree.c, Richard Henderson, 2022/12/16
- [PULL 04/13] accel/tcg: Use interval tree for TARGET_PAGE_DATA_SIZE, Richard Henderson, 2022/12/16
- [PULL 02/13] accel/tcg: Rename page_flush_tb,
Richard Henderson <=
- [PULL 03/13] accel/tcg: Use interval tree for TBs in user-only mode, Richard Henderson, 2022/12/16
- [PULL 05/13] accel/tcg: Move page_{get,set}_flags to user-exec.c, Richard Henderson, 2022/12/16
- [PULL 07/13] accel/tcg: Move PageDesc tree into tb-maint.c for system, Richard Henderson, 2022/12/16
- [PULL 06/13] accel/tcg: Use interval tree for user-only page tracking, Richard Henderson, 2022/12/16
- [PULL 10/13] accel/tcg: Remove trace events from trace-root.h, Richard Henderson, 2022/12/16
- [PULL 09/13] accel/tcg: Restrict cpu_io_recompile() to system emulation, Richard Henderson, 2022/12/16
- [PULL 08/13] accel/tcg: Move remainder of page locking to tb-maint.c, Richard Henderson, 2022/12/16
- [PULL 11/13] accel/tcg: Rename tb_invalidate_phys_page_fast{, __locked}(), Richard Henderson, 2022/12/16
- [PULL 12/13] accel/tcg: Factor tb_invalidate_phys_range_fast() out, Richard Henderson, 2022/12/16
- [PULL 13/13] accel/tcg: Restrict page_collection structure to system TB maintainance, Richard Henderson, 2022/12/16