* [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once
@ 2025-08-01 17:40 Pierrick Bouvier
2025-08-01 17:40 ` [PATCH v2 1/2] hw/meson: enter target hw first Pierrick Bouvier
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2025-08-01 17:40 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-arm, peter.maydell, philmd, Pierrick Bouvier
We simply compile them as target common code, without moving them to hw/arm.
Pierrick Bouvier (2):
hw/meson: enter target hw first
hw/intc: compile some arm related source once
hw/intc/meson.build | 6 +++---
hw/meson.build | 45 +++++++++++++++++++++++----------------------
2 files changed, 26 insertions(+), 25 deletions(-)
--
2.47.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/2] hw/meson: enter target hw first
2025-08-01 17:40 [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
@ 2025-08-01 17:40 ` Pierrick Bouvier
2025-08-04 8:39 ` Philippe Mathieu-Daudé
2025-08-01 17:40 ` [PATCH v2 2/2] hw/intc: compile some arm related source once Pierrick Bouvier
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Pierrick Bouvier @ 2025-08-01 17:40 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-arm, peter.maydell, philmd, Pierrick Bouvier
We can reuse target source sets for "generic" devices that are related
to a single architecture (like interrupt controllers).
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
hw/meson.build | 45 +++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/hw/meson.build b/hw/meson.build
index 791ce21ab42..1022bdb8069 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -1,3 +1,26 @@
+# Enter target code first to reuse variables associated
+subdir('alpha')
+subdir('arm')
+subdir('avr')
+subdir('hppa')
+subdir('xenpv') # i386 uses it
+subdir('i386')
+subdir('loongarch')
+subdir('m68k')
+subdir('microblaze')
+subdir('mips')
+subdir('openrisc')
+subdir('ppc')
+subdir('remote')
+subdir('riscv')
+subdir('rx')
+subdir('s390x')
+subdir('sh4')
+subdir('sparc')
+subdir('sparc64')
+subdir('tricore')
+subdir('xtensa')
+
subdir('9pfs')
subdir('acpi')
subdir('adc')
@@ -44,26 +67,4 @@ subdir('virtio')
subdir('vmapple')
subdir('watchdog')
subdir('xen')
-subdir('xenpv')
subdir('fsi')
-
-subdir('alpha')
-subdir('arm')
-subdir('avr')
-subdir('hppa')
-subdir('i386')
-subdir('loongarch')
-subdir('m68k')
-subdir('microblaze')
-subdir('mips')
-subdir('openrisc')
-subdir('ppc')
-subdir('remote')
-subdir('riscv')
-subdir('rx')
-subdir('s390x')
-subdir('sh4')
-subdir('sparc')
-subdir('sparc64')
-subdir('tricore')
-subdir('xtensa')
--
2.47.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 2/2] hw/intc: compile some arm related source once
2025-08-01 17:40 [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
2025-08-01 17:40 ` [PATCH v2 1/2] hw/meson: enter target hw first Pierrick Bouvier
@ 2025-08-01 17:40 ` Pierrick Bouvier
2025-08-22 14:31 ` [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
2025-09-01 20:48 ` Philippe Mathieu-Daudé
3 siblings, 0 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2025-08-01 17:40 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-arm, peter.maydell, philmd, Pierrick Bouvier
Let kvm related gic file out for now, as they are compiled only on
aarch64 hosts.
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
hw/intc/meson.build | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/intc/meson.build b/hw/intc/meson.build
index 3137521a4ad..3efb276b6e6 100644
--- a/hw/intc/meson.build
+++ b/hw/intc/meson.build
@@ -38,11 +38,11 @@ if config_all_devices.has_key('CONFIG_APIC') or \
endif
specific_ss.add(when: 'CONFIG_APIC', if_true: files('apic.c', 'apic_common.c'))
-specific_ss.add(when: 'CONFIG_ARM_GIC', if_true: files('arm_gicv3_cpuif_common.c'))
-specific_ss.add(when: 'CONFIG_ARM_GICV3', if_true: files('arm_gicv3_cpuif.c'))
+arm_common_ss.add(when: 'CONFIG_ARM_GIC', if_true: files('arm_gicv3_cpuif_common.c'))
+arm_common_ss.add(when: 'CONFIG_ARM_GICV3', if_true: files('arm_gicv3_cpuif.c'))
specific_ss.add(when: 'CONFIG_ARM_GIC_KVM', if_true: files('arm_gic_kvm.c'))
specific_ss.add(when: ['CONFIG_ARM_GIC_KVM', 'TARGET_AARCH64'], if_true: files('arm_gicv3_kvm.c', 'arm_gicv3_its_kvm.c'))
-specific_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_nvic.c'))
+arm_common_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_nvic.c'))
specific_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_irqmp.c'))
specific_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
specific_ss.add(when: 'CONFIG_LOONGSON_LIOINTC', if_true: files('loongson_liointc.c'))
--
2.47.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/2] hw/meson: enter target hw first
2025-08-01 17:40 ` [PATCH v2 1/2] hw/meson: enter target hw first Pierrick Bouvier
@ 2025-08-04 8:39 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-08-04 8:39 UTC (permalink / raw)
To: Pierrick Bouvier, qemu-devel; +Cc: qemu-arm, peter.maydell
On 1/8/25 19:40, Pierrick Bouvier wrote:
> We can reuse target source sets for "generic" devices that are related
> to a single architecture (like interrupt controllers).
>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> ---
> hw/meson.build | 45 +++++++++++++++++++++++----------------------
> 1 file changed, 23 insertions(+), 22 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once
2025-08-01 17:40 [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
2025-08-01 17:40 ` [PATCH v2 1/2] hw/meson: enter target hw first Pierrick Bouvier
2025-08-01 17:40 ` [PATCH v2 2/2] hw/intc: compile some arm related source once Pierrick Bouvier
@ 2025-08-22 14:31 ` Pierrick Bouvier
2025-09-01 16:23 ` Peter Maydell
2025-09-01 20:48 ` Philippe Mathieu-Daudé
3 siblings, 1 reply; 8+ messages in thread
From: Pierrick Bouvier @ 2025-08-22 14:31 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-arm, peter.maydell, philmd
On 2025-08-01 10:40, Pierrick Bouvier wrote:
> We simply compile them as target common code, without moving them to hw/arm.
>
> Pierrick Bouvier (2):
> hw/meson: enter target hw first
> hw/intc: compile some arm related source once
>
> hw/intc/meson.build | 6 +++---
> hw/meson.build | 45 +++++++++++++++++++++++----------------------
> 2 files changed, 26 insertions(+), 25 deletions(-)
>
Ping on this series.
I'll be out next week, but it should be ready to be pulled once the
trunk reopens.
Regards,
Pierrick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once
2025-08-22 14:31 ` [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
@ 2025-09-01 16:23 ` Peter Maydell
2025-09-01 20:50 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2025-09-01 16:23 UTC (permalink / raw)
To: Pierrick Bouvier; +Cc: qemu-devel, qemu-arm, philmd
On Fri, 22 Aug 2025 at 15:31, Pierrick Bouvier
<pierrick.bouvier@linaro.org> wrote:
>
> On 2025-08-01 10:40, Pierrick Bouvier wrote:
> > We simply compile them as target common code, without moving them to hw/arm.
> >
> > Pierrick Bouvier (2):
> > hw/meson: enter target hw first
> > hw/intc: compile some arm related source once
> >
> > hw/intc/meson.build | 6 +++---
> > hw/meson.build | 45 +++++++++++++++++++++++----------------------
> > 2 files changed, 26 insertions(+), 25 deletions(-)
> >
>
>
> Ping on this series.
> I'll be out next week, but it should be ready to be pulled once the
> trunk reopens.
Philippe -- I'm assuming you'll pick this up as part of
the single-binary work. Let me know if you'd rather it
goes via target-arm.
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once
2025-08-01 17:40 [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
` (2 preceding siblings ...)
2025-08-22 14:31 ` [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
@ 2025-09-01 20:48 ` Philippe Mathieu-Daudé
3 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-09-01 20:48 UTC (permalink / raw)
To: Pierrick Bouvier, qemu-devel; +Cc: qemu-arm, peter.maydell
On 1/8/25 19:40, Pierrick Bouvier wrote:
> Pierrick Bouvier (2):
> hw/meson: enter target hw first
> hw/intc: compile some arm related source once
Series:
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once
2025-09-01 16:23 ` Peter Maydell
@ 2025-09-01 20:50 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-09-01 20:50 UTC (permalink / raw)
To: Peter Maydell, Pierrick Bouvier; +Cc: qemu-devel, qemu-arm
On 1/9/25 18:23, Peter Maydell wrote:
> On Fri, 22 Aug 2025 at 15:31, Pierrick Bouvier
> <pierrick.bouvier@linaro.org> wrote:
>>
>> On 2025-08-01 10:40, Pierrick Bouvier wrote:
>>> We simply compile them as target common code, without moving them to hw/arm.
>>>
>>> Pierrick Bouvier (2):
>>> hw/meson: enter target hw first
>>> hw/intc: compile some arm related source once
>>>
>>> hw/intc/meson.build | 6 +++---
>>> hw/meson.build | 45 +++++++++++++++++++++++----------------------
>>> 2 files changed, 26 insertions(+), 25 deletions(-)
>>>
>>
>>
>> Ping on this series.
>> I'll be out next week, but it should be ready to be pulled once the
>> trunk reopens.
>
> Philippe -- I'm assuming you'll pick this up as part of
> the single-binary work. Let me know if you'd rather it
> goes via target-arm.
Oh, since the topic is ARM devices, I thought you'd take it,
or provide an Acked-by otherwise ;) I'll queue it directly to
save us time. Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-09-01 20:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-01 17:40 [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
2025-08-01 17:40 ` [PATCH v2 1/2] hw/meson: enter target hw first Pierrick Bouvier
2025-08-04 8:39 ` Philippe Mathieu-Daudé
2025-08-01 17:40 ` [PATCH v2 2/2] hw/intc: compile some arm related source once Pierrick Bouvier
2025-08-22 14:31 ` [PATCH v2 0/2] single-binary: compile hw/intc/arm* files once Pierrick Bouvier
2025-09-01 16:23 ` Peter Maydell
2025-09-01 20:50 ` Philippe Mathieu-Daudé
2025-09-01 20:48 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).