Commit f371388029 for qemu.org

commit f371388029c9b2afb9c94a2333fa314e8499d409
Author: Anton Blanchard <antonb@tenstorrent.com>
Date:   Wed Sep 16 12:39:58 2026 +0000

    accel/tcg: Fix TLB_MMIO check in tlb_plugin_lookup()

    Update tlb_plugin_lookup() to check TLB_MMIO in slow_flags.

    Cc: qemu-stable@nongnu.org
    Fixes: 24b5e0fdb543 ("include/exec: Move TLB_MMIO, TLB_DISCARD_WRITE to slow flags")
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Signed-off-by: Anton Blanchard <antonb@tenstorrent.com>
    Message-ID: <20260916123958.1884903-1-antonb@tenstorrent.com>
    Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c
index ae5af01496..dc83f3bad8 100644
--- a/accel/tcg/cputlb.c
+++ b/accel/tcg/cputlb.c
@@ -1589,7 +1589,7 @@ bool tlb_plugin_lookup(CPUState *cpu, vaddr addr, int mmu_idx,
     data->phys_addr = full->phys_addr | (addr & ~TARGET_PAGE_MASK);

     /* We must have an iotlb entry for MMIO */
-    if (tlb_addr & TLB_MMIO) {
+    if (full->slow_flags[access_type] & TLB_MMIO) {
         MemoryRegionSection *section = full->section;
         data->is_io = true;
         data->mr = section->mr;