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