mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-28 09:56:57 +00:00
exec: Reduce CONFIG_USER_ONLY ifdeffenery
Backports commit 1bc7e522d9cf1b58f2de9c8f1737be0bb5129c35 from qemu
This commit is contained in:
parent
d30410dc9a
commit
62c89b9cd4
|
@ -55,6 +55,18 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
|
|||
target_ulong pc, target_ulong cs_base,
|
||||
uint32_t flags,
|
||||
int cflags);
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
void cpu_list_lock(void);
|
||||
void cpu_list_unlock(void);
|
||||
#else
|
||||
static inline void cpu_list_unlock(void)
|
||||
{
|
||||
}
|
||||
static inline void cpu_list_lock(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void cpu_exec_init(CPUState *env, void *opaque);
|
||||
|
||||
void QEMU_NORETURN cpu_loop_exit(CPUState *cpu);
|
||||
|
|
Loading…
Reference in a new issue