import Unicorn2

This commit is contained in:
Nguyen Anh Quynh
2021-10-03 22:14:44 +08:00
parent 772558119a
commit aaaea14214
837 changed files with 368717 additions and 200912 deletions

View File

@@ -1,20 +1,25 @@
#ifndef QEMU_CPUS_H
#define QEMU_CPUS_H
struct uc_struct;
#include "qemu/timer.h"
/* cpus.c */
int resume_all_vcpus(struct uc_struct*);
void cpu_stop_current(struct uc_struct*);
bool qemu_in_vcpu_thread(void);
void qemu_init_cpu_loop(void);
void resume_all_vcpus(struct uc_struct* uc);
void cpu_stop_current(struct uc_struct* uc);
void cpu_ticks_init(void);
#ifndef CONFIG_USER_ONLY
/* vl.c */
extern int smp_cores;
extern int smp_threads;
#else
/* *-user doesn't have configurable SMP topology */
#define smp_cores 1
#define smp_threads 1
#endif
/* Unblock cpu */
void qemu_cpu_kick_self(void);
void cpu_synchronize_all_states(void);
void cpu_synchronize_all_post_reset(void);
void cpu_synchronize_all_post_init(void);
void cpu_synchronize_all_pre_loadvm(void);
void qtest_clock_warp(int64_t dest);
void list_cpus(const char *optarg);
#endif