On 23/9/25 04:39, Richard Henderson wrote:
Signed-off-by: Richard Henderson <[email protected]>
---
accel/tcg/translate-all.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index d468667b0d..d7cc346414 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -288,11 +288,8 @@ TranslationBlock *tb_gen_code(CPUState *cpu, TCGTBCPUState
s)
assert_no_pages_locked();
tb = tcg_tb_alloc(tcg_ctx);
if (unlikely(!tb)) {
- /* flush must be done */
- tb_flush(cpu);
mmap_unlock();
- /* Make the execution loop process the flush as soon as possible. */
Maybe keep the comment?
- cpu->exception_index = EXCP_INTERRUPT;
+ cpu->exception_index = EXCP_TB_FLUSH;
cpu_loop_exit(cpu);
}
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>