]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Use tb_invalidate_phys_page in page_set_flags
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 5 Oct 2022 16:27:52 +0000 (09:27 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 26 Oct 2022 01:11:28 +0000 (11:11 +1000)
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>
accel/tcg/translate-all.c

index aa8d2135148a7f76ebdc23873498398528c4988c..8d5233fa9e38ad045d2624a99bbaf1b832f8ccaf 100644 (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);