hw/core/cpu: Check for USER_ONLY definition instead of SOFTMMU one

Since we *might* have user emulation with softmmu,
replace the system emulation check by !user emulation one.

Invert the #ifdef'ry in TCGCPUOps structure for clarity.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230613133347.82210-6-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2023-06-13 15:33:43 +02:00 committed by Richard Henderson
parent 227776b7e2
commit 75fe97b429
2 changed files with 53 additions and 53 deletions

View file

@ -1016,7 +1016,7 @@ void page_size_init(void);
#ifdef NEED_CPU_H
#ifdef CONFIG_SOFTMMU
#ifndef CONFIG_USER_ONLY
extern const VMStateDescription vmstate_cpu_common;
@ -1027,7 +1027,7 @@ extern const VMStateDescription vmstate_cpu_common;
.flags = VMS_STRUCT, \
.offset = 0, \
}
#endif /* CONFIG_SOFTMMU */
#endif /* !CONFIG_USER_ONLY */
#endif /* NEED_CPU_H */