mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 21:03:54 -06:00
cpu: Move exit_request field to CPUState
Since it was located before breakpoints field, it needs to be reset. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
0315c31cda
commit
fcd7d0034b
8 changed files with 18 additions and 14 deletions
|
@ -1537,7 +1537,7 @@ int kvm_cpu_exec(CPUArchState *env)
|
|||
DPRINTF("kvm_cpu_exec()\n");
|
||||
|
||||
if (kvm_arch_process_async_events(cpu)) {
|
||||
env->exit_request = 0;
|
||||
cpu->exit_request = 0;
|
||||
return EXCP_HLT;
|
||||
}
|
||||
|
||||
|
@ -1548,7 +1548,7 @@ int kvm_cpu_exec(CPUArchState *env)
|
|||
}
|
||||
|
||||
kvm_arch_pre_run(cpu, run);
|
||||
if (env->exit_request) {
|
||||
if (cpu->exit_request) {
|
||||
DPRINTF("interrupt exit requested\n");
|
||||
/*
|
||||
* KVM requires us to reenter the kernel after IO exits to complete
|
||||
|
@ -1622,7 +1622,7 @@ int kvm_cpu_exec(CPUArchState *env)
|
|||
vm_stop(RUN_STATE_INTERNAL_ERROR);
|
||||
}
|
||||
|
||||
env->exit_request = 0;
|
||||
cpu->exit_request = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue