mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
meson: Only allow CONFIG_USER_ONLY from certain source sets
Poison CONFIG_USER_ONLY and CONFIG_SOFTMMU unless the compilation unit is in specific_ss, libuser_ss, or libsystem_ss. This is intended to prevent files being incorrectly added to common_ss. Remove #ifndef CONFIG_USER_ONLY / #error / #endif blocks. All they do is trigger the poison error. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
e4610f3809
commit
8916c373a3
6 changed files with 9 additions and 18 deletions
|
@ -18,10 +18,6 @@
|
|||
#ifndef QEMU_CONFIDENTIAL_GUEST_SUPPORT_H
|
||||
#define QEMU_CONFIDENTIAL_GUEST_SUPPORT_H
|
||||
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
#error Cannot include system/confidential-guest-support.h from user emulation
|
||||
#endif
|
||||
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_CONFIDENTIAL_GUEST_SUPPORT "confidential-guest-support"
|
||||
|
|
|
@ -11,10 +11,6 @@
|
|||
#ifndef SYSTEM_REPLAY_H
|
||||
#define SYSTEM_REPLAY_H
|
||||
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
#error Cannot include this header from user emulation
|
||||
#endif
|
||||
|
||||
#include "exec/replay-core.h"
|
||||
#include "qapi/qapi-types-misc.h"
|
||||
#include "qapi/qapi-types-run-state.h"
|
||||
|
|
|
@ -10,10 +10,6 @@
|
|||
#ifndef SYSTEM_XEN_H
|
||||
#define SYSTEM_XEN_H
|
||||
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
#error Cannot include system/xen.h from user emulation
|
||||
#endif
|
||||
|
||||
#include "exec/cpu-common.h"
|
||||
|
||||
#ifdef COMPILING_PER_TARGET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue