There is a memory_region_is_ram check later that
actually does that this was trying to do.

Signed-off-by: Richard Henderson <[email protected]>
---
 target/arm/tcg/mte_helper.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c
index 997248bd57..6177dea842 100644
--- a/target/arm/tcg/mte_helper.c
+++ b/target/arm/tcg/mte_helper.c
@@ -181,17 +181,6 @@ allocation_tag_mem_internal(CPUARMState *env, int 
ptr_mmu_idx,
         goto fini;
     }
 
-    /*
-     * If not backed by host ram, there is no tag storage: access unchecked.
-     * This is probably a guest os bug though, so log it.
-     */
-    if (unlikely(ret.flags & TLB_MMIO)) {
-        qemu_log_mask(LOG_GUEST_ERROR,
-                      "Page @ 0x%" PRIx64 " indicates Tagged Normal memory "
-                      "but is not backed by host ram\n", ptr);
-        goto fini;
-    }
-
     /*
      * Remember this across the second lookup below,
      * which may invalidate this pointer via tlb resize.
-- 
2.43.0


Reply via email to