mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Move debug exception handling out of cpu_exec
To prepare splitting up KVM and TCG CPU entry/exit, move the debug exception into cpus.c and invoke cpu_handle_debug_exception on return from qemu_cpu_exec. This also allows to clean up the debug request signaling: We can assign the job of informing main-loop to qemu_system_debug_request and stop the calling cpu directly in cpu_handle_debug_exception. That means a debug stop will now only be signaled via debug_requested and not additionally via vmstop_requested. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
8cf71710f0
commit
83f338f73e
3 changed files with 31 additions and 30 deletions
2
vl.c
2
vl.c
|
@ -1315,7 +1315,7 @@ void qemu_system_powerdown_request(void)
|
|||
void qemu_system_debug_request(void)
|
||||
{
|
||||
debug_requested = 1;
|
||||
vm_stop(VMSTOP_DEBUG);
|
||||
qemu_notify_event();
|
||||
}
|
||||
|
||||
void qemu_system_vmstop_request(int reason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue