mirror of https://github.com/xemu-project/xemu.git
cpu: Don't clear cpu->exit_request on reset
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 <edgar.iglesias@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
57fac92c2d
commit
9d111183d5
|
@ -195,7 +195,6 @@ static void cpu_common_reset(CPUState *cpu)
|
||||||
log_cpu_state(cpu, cc->reset_dump_flags);
|
log_cpu_state(cpu, cc->reset_dump_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu->exit_request = 0;
|
|
||||||
cpu->interrupt_request = 0;
|
cpu->interrupt_request = 0;
|
||||||
cpu->current_tb = NULL;
|
cpu->current_tb = NULL;
|
||||||
cpu->halted = 0;
|
cpu->halted = 0;
|
||||||
|
|
Loading…
Reference in New Issue