1#ifndef QEMU_CPUS_H 2#define QEMU_CPUS_H 3 4/* cpus.c */ 5bool qemu_in_vcpu_thread(void); 6void qemu_init_cpu_loop(void); 7void resume_all_vcpus(void); 8void pause_all_vcpus(void); 9void cpu_stop_current(void); 10bool all_cpu_threads_idle(void); 11 12void cpu_synchronize_all_states(void); 13void cpu_synchronize_all_post_reset(void); 14void cpu_synchronize_all_post_init(void); 15 16void tcg_clock_warp(int64_t dest); 17bool tcg_idle_clock_warp(int64_t dest); 18void qtest_clock_warp(int64_t dest); 19 20void qemu_icount_enable_idle_timewarps(bool enable); 21 22#ifndef CONFIG_USER_ONLY 23/* vl.c */ 24extern int smp_cores; 25extern int smp_threads; 26#else 27/* *-user doesn't have configurable SMP topology */ 28#define smp_cores 1 29#define smp_threads 1 30#endif 31 32void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg); 33 34#endif 35