mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
kvm: Change cpu_synchronize_state() argument to CPUState
Change Monitor::mon_cpu to CPUState as well. Reviewed-by: liguang <lig.fnst@cn.fujitsu.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
dd1750d798
commit
cb446ecab7
13 changed files with 28 additions and 27 deletions
|
@ -191,7 +191,7 @@ struct Monitor {
|
|||
QString *outbuf;
|
||||
ReadLineState *rs;
|
||||
MonitorControl *mc;
|
||||
CPUArchState *mon_cpu;
|
||||
CPUState *mon_cpu;
|
||||
BlockDriverCompletionFunc *password_completion_cb;
|
||||
void *password_opaque;
|
||||
QError *error;
|
||||
|
@ -900,7 +900,7 @@ int monitor_set_cpu(int cpu_index)
|
|||
if (cpu == NULL) {
|
||||
return -1;
|
||||
}
|
||||
cur_mon->mon_cpu = cpu->env_ptr;
|
||||
cur_mon->mon_cpu = cpu;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -910,7 +910,7 @@ static CPUArchState *mon_get_cpu(void)
|
|||
monitor_set_cpu(0);
|
||||
}
|
||||
cpu_synchronize_state(cur_mon->mon_cpu);
|
||||
return cur_mon->mon_cpu;
|
||||
return cur_mon->mon_cpu->env_ptr;
|
||||
}
|
||||
|
||||
int monitor_get_cpu_index(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue