Commit b89336344d for qemu.org
commit b89336344d3da8b78827e88967aeafceb45ed584
Author: Alex Bennée <alex.bennee@linaro.org>
Date: Thu Nov 26 14:36:06 2026 +0000
accel/tcg: update stale comment for cpu_io_recompile
since 18a536f1f8d6 ("accel/tcg: Always require can_do_io") we always
trigger a recompile when we detect i/o mid-block. Update the comment
to reflect that.
Fixes: 18a536f1f8d6 ("accel/tcg: Always require can_do_io")
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20261126143607.2374676-8-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index ea8257935e..2918aa890a 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -566,8 +566,10 @@ void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr)
#ifndef CONFIG_USER_ONLY
/*
- * In deterministic execution mode, instructions doing device I/Os
- * must be at the end of the TB.
+ * Instructions doing device I/Os must happen at the end
+ * of the TB as they can change system state affecting following
+ * instructions. When we detect mid-block IO we trigger a re-compile
+ * with the TB cflags.
*
* Called by softmmu_template.h, with iothread mutex not held.
*/