accel/tcg: Use tb_invalidate_phys_page in page_set_flags

We do not require detection of overlapping TBs here,
so use the more appropriate function.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2022-10-05 09:27:52 -07:00
parent 65cd34e8c4
commit 24ace1ac3c

View File

@ -1382,7 +1382,7 @@ void page_set_flags(target_ulong start, target_ulong end, int flags)
if (!(p->flags & PAGE_WRITE) &&
(flags & PAGE_WRITE) &&
p->first_tb) {
tb_invalidate_phys_page_unwind(addr, 0);
tb_invalidate_phys_page(addr);
}
if (reset_target_data) {
g_free(p->target_data);