exec: Reduce CONFIG_USER_ONLY ifdeffenery

Backports commit 1bc7e522d9cf1b58f2de9c8f1737be0bb5129c35 from qemu
This commit is contained in:
Igor Mammedov 2018-02-25 20:57:43 -05:00 committed by Lioncash
parent d30410dc9a
commit 62c89b9cd4
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -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);