softmmu/cpus: Code movement
We want cpu_thread_is_idle() to use cpus_accel, so declare this variable earlier. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-10-f4bug@amsat.org>
This commit is contained in:
parent
b04363c240
commit
5f74af8bab
@ -67,6 +67,11 @@
|
|||||||
|
|
||||||
static QemuMutex qemu_global_mutex;
|
static QemuMutex qemu_global_mutex;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The chosen accelerator is supposed to register this.
|
||||||
|
*/
|
||||||
|
static const AccelOpsClass *cpus_accel;
|
||||||
|
|
||||||
bool cpu_is_stopped(CPUState *cpu)
|
bool cpu_is_stopped(CPUState *cpu)
|
||||||
{
|
{
|
||||||
return cpu->stopped || !runstate_is_running();
|
return cpu->stopped || !runstate_is_running();
|
||||||
@ -122,11 +127,6 @@ void hw_error(const char *fmt, ...)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* The chosen accelerator is supposed to register this.
|
|
||||||
*/
|
|
||||||
static const AccelOpsClass *cpus_accel;
|
|
||||||
|
|
||||||
void cpu_synchronize_all_states(void)
|
void cpu_synchronize_all_states(void)
|
||||||
{
|
{
|
||||||
CPUState *cpu;
|
CPUState *cpu;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user