mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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:
parent
227776b7e2
commit
75fe97b429
2 changed files with 53 additions and 53 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue