diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-11 13:53:12 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-16 14:54:51 +0100 |
| commit | db08b687cdd5319286665aabd34f82665630416f (patch) | |
| tree | e93ceecd86e566043dc06fd7c7e1be9a99fc8aae /hw/timer/stm32f2xx_timer.c | |
| parent | b39e3f34c9de7ead6a11a74aa2de78baf41d81a7 (diff) | |
| download | focaccia-qemu-db08b687cdd5319286665aabd34f82665630416f.tar.gz focaccia-qemu-db08b687cdd5319286665aabd34f82665630416f.zip | |
cpus: unify qemu_*_wait_io_event
Except for round-robin TCG, every other accelerator is using more or less the same code around qemu_wait_io_event_common. The exception is HAX, which also has to eat the dummy APC that is queued by qemu_cpu_kick_thread. We can add the SleepEx call to qemu_wait_io_event under "if (!tcg_enabled())", since that is the condition that is used in qemu_cpu_kick_thread, and unify the function for KVM, HAX, HVF and multi-threaded TCG. Single-threaded TCG code can also be simplified since it is only used in the round-robin, sleep-if-all-CPUs-idle case. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/timer/stm32f2xx_timer.c')
0 files changed, 0 insertions, 0 deletions