accel/tcg: Remove tb_invalidate_phys_page() from system emulation
Since previous commit, tb_invalidate_phys_page() is not used anymore in system emulation. Make it static for user emulation and remove its public declaration in "exec/translate-all.h".
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
---
Based-on: <[email protected]>
--- include/exec/translate-all.h | 1 - accel/tcg/tb-maint.c | 24 +----------------------- 2 files changed, 1 insertion(+), 24 deletions(-)
include/exec/translate-all.h +0 -1
@@ -23,7 +23,6 @@/* translate-all.c */ -void tb_invalidate_phys_page (tb_page_addr_t addr);void tb_check_watchpoint (CPUState *cpu,uintptr_t retaddr);#ifdef CONFIG_USER_ONLY
accel/tcg/tb-maint.c +1 -23
@@ -1021,7 +1021,7 @@ void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t last)* Called with mmap_lock held for user-mode emulation * NOTE: this function must not be called while a TB is running. */ -void tb_invalidate_phys_page (tb_page_addr_t addr) +static void tb_invalidate_phys_page (tb_page_addr_t addr) {tb_page_addr_t start, last;
@@ -1160,28 +1160,6 @@ tb_invalidate_phys_page_range__locked(struct page_collection *pages,#endif } -/* -* Invalidate all TBs which intersect with the target physical -* address page @addr. -*/ -void tb_invalidate_phys_page (tb_page_addr_t addr) -{ -struct page_collection *pages; -tb_page_addr_t start, last; -PageDesc *p; - - p =page_find (addr >>TARGET_PAGE_BITS ); -if (p ==NULL ) { -return ; - } - - start = addr &TARGET_PAGE_MASK ; - last = addr | ~TARGET_PAGE_MASK ; - pages =page_collection_lock (start, last); -tb_invalidate_phys_page_range__locked (pages, p, start, last,0 ); -page_collection_unlock (pages); -} -/* * Invalidate all TBs which intersect with the target physical address range * [start;last]. NOTE: start and end may refer to *different* physical pages.
Signature · 1 line
2.41.0
ping?
Quoted 66 lines · Philippe Mathieu-Daudé
Since previous commit,
tb_invalidate_phys_page()is not used anymore in system emulation. Make it static for user emulation and remove its public declaration in "exec/translate-all.h".Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Based-on: <[email protected]>--- include/exec/translate-all.h | 1 - accel/tcg/tb-maint.c | 24 +----------------------- 2 files changed, 1 insertion(+), 24 deletions(-)include/exec/translate-all.h +0
-1@@ -23,7 +23,6 @@/* translate-all.c */ -void tb_invalidate_phys_page (tb_page_addr_t addr);void tb_check_watchpoint (CPUState *cpu,uintptr_t retaddr);#ifdef CONFIG_USER_ONLY accel/tcg/tb-maint.c +1
-23@@ -1021,7 +1021,7 @@ void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t last)* Called with mmap_lock held for user-mode emulation * NOTE: this function must not be called while a TB is running. */ -void tb_invalidate_phys_page (tb_page_addr_t addr) +static void tb_invalidate_phys_page (tb_page_addr_t addr) {tb_page_addr_t start, last;@@ -1160,28 +1160,6 @@ tb_invalidate_phys_page_range__locked(struct page_collection *pages,#endif } -/* -* Invalidate all TBs which intersect with the target physical -* address page @addr. -*/ -void tb_invalidate_phys_page (tb_page_addr_t addr) -{ -struct page_collection *pages; -tb_page_addr_t start, last; -PageDesc *p; - - p =page_find (addr >>TARGET_PAGE_BITS ); -if (p ==NULL ) { -return ; - } - - start = addr &TARGET_PAGE_MASK ; - last = addr | ~TARGET_PAGE_MASK ; - pages =page_collection_lock (start, last); -tb_invalidate_phys_page_range__locked (pages, p, start, last,0 ); -page_collection_unlock (pages); -} -/* * Invalidate all TBs which intersect with the target physical address range * [start;last]. NOTE: start and end may refer to *different* physical pages.
Richard Henderson
Reviewed-byQuoted 11 lines · Philippe Mathieu-Daudé
Since previous commit,
tb_invalidate_phys_page()is not used anymore in system emulation. Make it static for user emulation and remove its public declaration in "exec/translate-all.h".Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Based-on: <[email protected]>--- include/exec/translate-all.h | 1 - accel/tcg/tb-maint.c | 24 +----------------------- 2 files changed, 1 insertion(+), 24 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~