On 16/6/26 19:58, Richard Henderson wrote:
On 6/16/26 08:34, Philippe Mathieu-Daudé wrote:
@@ -1291,8 +1294,10 @@ static void io_failed(CPUState *cpu, CPUTLBEntryFull *full, vaddr addr,                         unsigned size, MMUAccessType access_type, int mmu_idx,
                        MemTxResult response, uintptr_t retaddr)
  {
-    if (!cpu->ignore_memory_transaction_failures
-        && cpu->cc->tcg_ops->do_transaction_failed) {
+    if (unlikely(tcg_ignore_memory_transaction_failures)) {
+        return;
+    }

Any reason not to pull this from MACHINE_CLASS(current_machine) instead of a global?

Restrict this TCG specific handling out of CPU common. I'll see as
an alternative to defer the check to late TCG TLB init, allowing
to make the boolean non-global.

Reply via email to