From 62c89b9cd4a96b6e16a092c594de965da03fb0da Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Sun, 25 Feb 2018 20:57:43 -0500 Subject: [PATCH] exec: Reduce CONFIG_USER_ONLY ifdeffenery Backports commit 1bc7e522d9cf1b58f2de9c8f1737be0bb5129c35 from qemu --- qemu/include/exec/exec-all.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qemu/include/exec/exec-all.h b/qemu/include/exec/exec-all.h index 4b9cee43..cb1732b0 100644 --- a/qemu/include/exec/exec-all.h +++ b/qemu/include/exec/exec-all.h @@ -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);