[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 21/21] softmmu: Build target-agnostic objects once
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 21/21] softmmu: Build target-agnostic objects once |
Date: |
Mon, 7 Feb 2022 08:54:26 +0100 |
Various softmmu objects aren't target specific. Move them
to the generic softmmu source set.
For our 31 softmmu targets, this is in total 330 objects
less to build!
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
softmmu/meson.build | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/softmmu/meson.build b/softmmu/meson.build
index d8e03018ab..d2badf203b 100644
--- a/softmmu/meson.build
+++ b/softmmu/meson.build
@@ -1,20 +1,9 @@
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
'arch_init.c',
- 'balloon.c',
- 'cpus.c',
- 'cpu-throttle.c',
- 'datadir.c',
- 'globals.c',
- 'physmem.c',
'ioport.c',
- 'rtc.c',
- 'runstate.c',
'memory.c',
- 'memory_mapping.c',
+ 'physmem.c',
'qtest.c',
- 'vl.c',
- 'cpu-timers.c',
- 'runstate-action.c',
)])
specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: [files(
@@ -22,9 +11,20 @@ specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'],
if_true: [files(
)])
softmmu_ss.add(files(
+ 'balloon.c',
'bootdevice.c',
+ 'cpus.c',
+ 'cpu-throttle.c',
+ 'cpu-timers.c',
+ 'datadir.c',
'dma-helpers.c',
+ 'globals.c',
+ 'memory_mapping.c',
'qdev-monitor.c',
+ 'rtc.c',
+ 'runstate-action.c',
+ 'runstate.c',
+ 'vl.c',
), sdl, libpmem, libdaxctl)
softmmu_ss.add(when: 'CONFIG_TPM', if_true: files('tpm.c'))
--
2.34.1
- [PATCH v3 00/21] softmmu: Make various objects target agnostic, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 01/21] accel: Restrict sysemu stubs to system emulation, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 03/21] exec: Declare vaddr as a generic target-agnostic type, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 06/21] sysemu/kvm: Make kvm_on_sigbus() / kvm_on_sigbus_vcpu() target agnostic, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 04/21] exec: Make cpu_memory_rw_debug() target agnostic, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 02/21] accel/meson: Only build hw virtualization with system emulation, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 07/21] accel/kvm: Simplify user-mode #ifdef'ry, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 08/21] accel/hax: Introduce CONFIG_HAX_IS_POSSIBLE, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 10/21] accel: Introduce AccelOpsClass::cpu_thread_is_idle(), Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 15/21] softmmu/cpu-timers: Remove unused 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 21/21] softmmu: Build target-agnostic objects once,
Philippe Mathieu-Daudé <=
- [PATCH v3 13/21] softmmu/runstate: Clean headers, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 16/21] misc: Remove unnecessary "sysemu/cpu-timers.h" include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 17/21] misc: Add missing "sysemu/cpu-timers.h" include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 20/21] softmmu: Add qemu_init_arch_modules(), Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 09/21] softmmu/cpus: Code movement, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 18/21] exec/gdbstub: Make gdb_exit() / gdb_set_stop_cpu() target agnostic, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 05/21] sysemu/memory_mapping: Become target-agnostic, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 14/21] softmmu/physmem: Remove unnecessary include, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 12/21] softmmu/globals: Remove unused 'hw/i386/*' headers, Philippe Mathieu-Daudé, 2022/02/07
- [PATCH v3 19/21] exec/cpu: Make address_space_init/reloading_memory_map target agnostic, Philippe Mathieu-Daudé, 2022/02/07