diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-09-14 08:36:11 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-09-28 10:08:03 -0700 |
| commit | 200c1f904f46c209cb022e711a48b89e46512902 (patch) | |
| tree | 21166bd67a2cf3bca58447df2a457cec6360ced7 /accel/tcg/cpu-exec.c | |
| parent | a2f99d484c54adda13e62bf75ba512618a3fe470 (diff) | |
| download | focaccia-qemu-200c1f904f46c209cb022e711a48b89e46512902.tar.gz focaccia-qemu-200c1f904f46c209cb022e711a48b89e46512902.zip | |
accel/tcg: Always set CF_LAST_IO with CF_NOIRQ
Without this we can get see loops through cpu_io_recompile, in which the cpu makes no progress. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/cpu-exec.c')
| -rw-r--r-- | accel/tcg/cpu-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index e2c494e75e..c724e8b6f1 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -720,7 +720,7 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret) && cpu_neg(cpu)->icount_decr.u16.low + cpu->icount_extra == 0) { /* Execute just one insn to trigger exception pending in the log */ cpu->cflags_next_tb = (curr_cflags(cpu) & ~CF_USE_ICOUNT) - | CF_NOIRQ | 1; + | CF_LAST_IO | CF_NOIRQ | 1; } #endif return false; |