[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 12/18] semihosting: move stubs out of stubs/
|
From: |
Paolo Bonzini |
|
Subject: |
[PATCH v2 12/18] semihosting: move stubs out of stubs/ |
|
Date: |
Mon, 8 Apr 2024 17:53:24 +0200 |
Since the semihosting stubs are needed exactly when the Kconfig symbols
are not needed, move them to semihosting/ and conditionalize them
on CONFIG_SEMIHOSTING and/or CONFIG_SYSTEM_ONLY.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
stubs/semihost-all.c => semihosting/stubs-all.c | 0
stubs/semihost.c => semihosting/stubs-system.c | 0
semihosting/meson.build | 3 +++
stubs/meson.build | 2 --
4 files changed, 3 insertions(+), 2 deletions(-)
rename stubs/semihost-all.c => semihosting/stubs-all.c (100%)
rename stubs/semihost.c => semihosting/stubs-system.c (100%)
diff --git a/stubs/semihost-all.c b/semihosting/stubs-all.c
similarity index 100%
rename from stubs/semihost-all.c
rename to semihosting/stubs-all.c
diff --git a/stubs/semihost.c b/semihosting/stubs-system.c
similarity index 100%
rename from stubs/semihost.c
rename to semihosting/stubs-system.c
diff --git a/semihosting/meson.build b/semihosting/meson.build
index b07cbd980f2..34933e5a195 100644
--- a/semihosting/meson.build
+++ b/semihosting/meson.build
@@ -9,5 +9,8 @@ specific_ss.add(when: ['CONFIG_SEMIHOSTING',
'CONFIG_SYSTEM_ONLY'], if_true: fil
'uaccess.c',
))
+common_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_false:
files('stubs-all.c'))
+system_ss.add(when: ['CONFIG_SEMIHOSTING'], if_false: files('stubs-system.c'))
+
specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
if_true: files('arm-compat-semi.c'))
diff --git a/stubs/meson.build b/stubs/meson.build
index 60e32d363fa..84ecaa4daa1 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -55,9 +55,7 @@ if have_block or have_ga
endif
if have_system
stub_ss.add(files('fw_cfg.c'))
- stub_ss.add(files('semihost.c'))
stub_ss.add(files('xen-hw-stub.c'))
else
stub_ss.add(files('qdev.c'))
endif
-stub_ss.add(files('semihost-all.c'))
--
2.44.0
- [PATCH v2 07/18] hw/core: Move system emulation files to system_ss, (continued)
- [PATCH v2 07/18] hw/core: Move system emulation files to system_ss, Paolo Bonzini, 2024/04/08
- [PATCH v2 09/18] stubs: remove obsolete stubs, Paolo Bonzini, 2024/04/08
- [PATCH v2 10/18] hw/usb: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 06/18] util/qemu-config: Extract QMP commands to qemu-config-qmp.c, Paolo Bonzini, 2024/04/08
- [PATCH v2 11/18] hw/virtio: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 12/18] semihosting: move stubs out of stubs/,
Paolo Bonzini <=
- [PATCH v2 13/18] ramfb: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 14/18] memory-device: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 15/18] colo: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 17/18] stubs: include stubs only if needed, Paolo Bonzini, 2024/04/08
- [PATCH v2 16/18] stubs: split record/replay stubs further, Paolo Bonzini, 2024/04/08