From 9d111183d5d67be6252dd4a4e688ef4ad323f817 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 13 Feb 2014 15:07:14 +1000 Subject: cpu: Don't clear cpu->exit_request on reset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cpu->exit_request is part of the execution environment and should not be cleared when a CPU resets. Otherwise, we might deadlock QEMU if a CPU resets while there is I/O going on. Signed-off-by: Edgar E. Iglesias Reviewed-by: Peter Maydell Signed-off-by: Andreas Färber --- qom/cpu.c | 1 - 1 file changed, 1 deletion(-) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index 9d62479546..40d82dd178 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -195,7 +195,6 @@ static void cpu_common_reset(CPUState *cpu) log_cpu_state(cpu, cc->reset_dump_flags); } - cpu->exit_request = 0; cpu->interrupt_request = 0; cpu->current_tb = NULL; cpu->halted = 0; -- cgit v1.2.1