xref: /openbmc/qemu/include/sysemu/cpus.h (revision 740b175973427bcfa32ad894bb1f83b96d184c28)
1 #ifndef QEMU_CPUS_H
2 #define QEMU_CPUS_H
3 
4 #include "qemu/timer.h"
5 
6 /* cpus.c */
7 bool all_cpu_threads_idle(void);
8 bool qemu_in_vcpu_thread(void);
9 void qemu_init_cpu_loop(void);
10 void resume_all_vcpus(void);
11 void pause_all_vcpus(void);
12 void cpu_stop_current(void);
13 
14 extern int icount_align_option;
15 
16 /* Unblock cpu */
17 void qemu_cpu_kick_self(void);
18 
19 void cpu_synchronize_all_states(void);
20 void cpu_synchronize_all_post_reset(void);
21 void cpu_synchronize_all_post_init(void);
22 void cpu_synchronize_all_pre_loadvm(void);
23 
24 #ifndef CONFIG_USER_ONLY
25 /* vl.c */
26 /* *-user doesn't have configurable SMP topology */
27 extern int smp_cores;
28 extern int smp_threads;
29 #endif
30 
31 void list_cpus(const char *optarg);
32 
33 #endif
34