diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-03-12 20:24:44 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-23 14:08:44 -0700 |
| commit | 8916c373a3fd56938f1b7d57010491a0b9662b1e (patch) | |
| tree | 486e2bde75d3fefe033ffceb016192ec83bc3817 /include/hw/hw.h | |
| parent | e4610f38095a3ae01177fe67fd70e4d66b683259 (diff) | |
| download | focaccia-qemu-8916c373a3fd56938f1b7d57010491a0b9662b1e.tar.gz focaccia-qemu-8916c373a3fd56938f1b7d57010491a0b9662b1e.zip | |
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>
Diffstat (limited to 'include/hw/hw.h')
| -rw-r--r-- | include/hw/hw.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/hw/hw.h b/include/hw/hw.h index 045c1c8b09..1b33d12b7f 100644 --- a/include/hw/hw.h +++ b/include/hw/hw.h @@ -1,10 +1,6 @@ #ifndef QEMU_HW_H #define QEMU_HW_H -#ifdef CONFIG_USER_ONLY -#error Cannot include hw/hw.h from user emulation -#endif - G_NORETURN void hw_error(const char *fmt, ...) G_GNUC_PRINTF(1, 2); #endif |