From: Richard Henderson Date: Sat, 6 Sep 2025 04:35:36 +0000 (+0200) Subject: hw/ppc/spapr: Use tb_invalidate_phys_range in h_page_init X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d61f61b4fa4dc4cd65fca8b24a9cb70c0c61a88;p=thirdparty%2Fqemu.git hw/ppc/spapr: Use tb_invalidate_phys_range in h_page_init We only need invalidate tbs from a single page, not flush all translations. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Harsh Prateek Bora Signed-off-by: Richard Henderson --- diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index c594d4b916e..8c1e0a4817b 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -8,7 +8,7 @@ #include "qemu/main-loop.h" #include "qemu/module.h" #include "qemu/error-report.h" -#include "exec/tb-flush.h" +#include "exec/translation-block.h" #include "exec/target_page.h" #include "helper_regs.h" #include "hw/ppc/ppc.h" @@ -301,7 +301,7 @@ static target_ulong h_page_init(PowerPCCPU *cpu, SpaprMachineState *spapr, if (kvm_enabled()) { kvmppc_icbi_range(cpu, pdst, len); } else if (tcg_enabled()) { - tb_flush(CPU(cpu)); + tb_invalidate_phys_range(CPU(cpu), dst, dst + len - 1); } else { g_assert_not_reached(); }