All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: ale@rev.ng, "Andrey Smirnov" <andrew.smirnov@gmail.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	qemu-arm@nongnu.org, "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Niek Linnenbank" <nieklinnenbank@gmail.com>,
	"Jean-Christophe Dubois" <jcd@tribudubois.net>,
	"Antonio Caggiano" <antonio.caggiano@collabora.com>,
	"Rob Herring" <robh@kernel.org>,
	"Antony Pavlov" <antonynpavlov@gmail.com>,
	"Jan Kiszka" <jan.kiszka@web.de>,
	"Beniamino Galvani" <b.galvani@gmail.com>
Subject: [PATCH 01/18] hw/arm: Move various units to softmmu_ss[]
Date: Tue, 10 Jan 2023 17:43:49 +0100	[thread overview]
Message-ID: <20230110164406.94366-2-philmd@linaro.org> (raw)
In-Reply-To: <20230110164406.94366-1-philmd@linaro.org>

arm_ss[] units are built twice: once for 32-bit word size and
once for 64-bit. The following units don't require any word
size knowledge and can be moved to softmmu_ss[] (where they
are built once):

 - smmu-common.c
 - exynos4_boards.c
 - bcm2835_peripherals.c
 - tosa.c

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/arm/meson.build | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/hw/arm/meson.build b/hw/arm/meson.build
index 92f9f6e000..4babaa8dfc 100644
--- a/hw/arm/meson.build
+++ b/hw/arm/meson.build
@@ -3,7 +3,6 @@ arm_ss.add(files('boot.c'), fdt)
 arm_ss.add(when: 'CONFIG_ARM_VIRT', if_true: files('virt.c'))
 arm_ss.add(when: 'CONFIG_ACPI', if_true: files('virt-acpi-build.c'))
 arm_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic_boards.c'))
-arm_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4_boards.c'))
 arm_ss.add(when: 'CONFIG_EMCRAFT_SF2', if_true: files('msf2-som.c'))
 arm_ss.add(when: 'CONFIG_HIGHBANK', if_true: files('highbank.c'))
 arm_ss.add(when: 'CONFIG_INTEGRATOR', if_true: files('integratorcp.c'))
@@ -18,7 +17,6 @@ arm_ss.add(when: 'CONFIG_SX1', if_true: files('omap_sx1.c'))
 arm_ss.add(when: 'CONFIG_CHEETAH', if_true: files('palm.c'))
 arm_ss.add(when: 'CONFIG_GUMSTIX', if_true: files('gumstix.c'))
 arm_ss.add(when: 'CONFIG_SPITZ', if_true: files('spitz.c'))
-arm_ss.add(when: 'CONFIG_TOSA', if_true: files('tosa.c'))
 arm_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c'))
 arm_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview.c'))
 arm_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa-ref.c'))
@@ -38,7 +36,7 @@ arm_ss.add(when: 'CONFIG_OMAP', if_true: files('omap1.c', 'omap2.c'))
 arm_ss.add(when: 'CONFIG_STRONGARM', if_true: files('strongarm.c'))
 arm_ss.add(when: 'CONFIG_ALLWINNER_A10', if_true: files('allwinner-a10.c', 'cubieboard.c'))
 arm_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3.c', 'orangepi.c'))
-arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c', 'bcm2836.c', 'raspi.c'))
+arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2836.c', 'raspi.c'))
 arm_ss.add(when: 'CONFIG_STM32F100_SOC', if_true: files('stm32f100_soc.c'))
 arm_ss.add(when: 'CONFIG_STM32F205_SOC', if_true: files('stm32f205_soc.c'))
 arm_ss.add(when: 'CONFIG_STM32F405_SOC', if_true: files('stm32f405_soc.c'))
@@ -59,8 +57,13 @@ arm_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-soc.c'))
 arm_ss.add(when: 'CONFIG_MUSCA', if_true: files('musca.c'))
 arm_ss.add(when: 'CONFIG_ARMSSE', if_true: files('armsse.c'))
 arm_ss.add(when: 'CONFIG_FSL_IMX7', if_true: files('fsl-imx7.c', 'mcimx7d-sabre.c'))
-arm_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmu-common.c', 'smmuv3.c'))
+arm_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmuv3.c'))
 arm_ss.add(when: 'CONFIG_FSL_IMX6UL', if_true: files('fsl-imx6ul.c', 'mcimx6ul-evk.c'))
 arm_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_soc.c'))
 
+softmmu_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmu-common.c'))
+softmmu_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4_boards.c'))
+softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c'))
+softmmu_ss.add(when: 'CONFIG_TOSA', if_true: files('tosa.c'))
+
 hw_arch += {'arm': arm_ss}
-- 
2.38.1

  reply	other threads:[~2023-01-10 16:44 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10 16:43 [PATCH 00/18] hw/arm: Move various objects to softmmu_ss to build them once (part 1) Philippe Mathieu-Daudé
2023-01-10 16:43 ` Philippe Mathieu-Daudé [this message]
2023-01-11 19:53   ` [PATCH 01/18] hw/arm: Move various units to softmmu_ss[] Richard Henderson
2023-01-10 16:43 ` [PATCH 02/18] hw/arm/boot: Include missing 'exec/cpu-all.h' header Philippe Mathieu-Daudé
2023-01-11 19:55   ` Richard Henderson
2023-01-10 16:43 ` [PATCH 03/18] target/arm/cpregs: Include missing 'target/arm/cpu.h' header Philippe Mathieu-Daudé
2023-01-11 19:56   ` Richard Henderson
2023-01-10 16:43 ` [PATCH 04/18] hw/arm: Use full "target/arm/cpu.h" path to include target's "cpu.h" Philippe Mathieu-Daudé
2023-01-11 19:58   ` Richard Henderson
2023-01-10 16:43 ` [PATCH 05/18] target/arm: Move CPU QOM type definitions to "hw/arm/cpu.h" Philippe Mathieu-Daudé
2023-01-11 20:02   ` Richard Henderson
2023-01-12  7:17     ` Philippe Mathieu-Daudé
2025-04-02  4:06       ` Philippe Mathieu-Daudé
2025-04-02  4:59         ` Philippe Mathieu-Daudé
2025-04-02 15:29         ` Pierrick Bouvier
2023-01-10 16:43 ` [PATCH 06/18] target/arm: Move CPU definitions consumed by HW model " Philippe Mathieu-Daudé
2025-04-02  4:08   ` Philippe Mathieu-Daudé
2023-01-10 16:43 ` [PATCH 07/18] hw/arm: Move more units to softmmu_ss[] Philippe Mathieu-Daudé
2023-01-10 16:43 ` [PATCH 08/18] hw/arm: Move units to softmmu[] by replacing "{target -> hw}/arm/cpu.h" Philippe Mathieu-Daudé
2023-01-10 16:43 ` [PATCH 09/18] hw/arm/armv7m: Remove 'target/arm/cpu.h' from NVIC header Philippe Mathieu-Daudé
2023-01-10 16:43 ` [PATCH 10/18] hw/arm: Move various armv7m-related units to softmmu_ss[] Philippe Mathieu-Daudé
2023-01-10 16:43 ` [PATCH 11/18] hw/arm/digic: Remove unnecessary target_long use Philippe Mathieu-Daudé
2023-01-11 20:04   ` Richard Henderson
2023-01-10 16:44 ` [PATCH 12/18] hw/arm/digic: Replace object_initialize(ARMCPU) by object_new(ARMCPU) Philippe Mathieu-Daudé
2023-01-10 16:52   ` Peter Maydell
2023-01-11  9:01     ` Philippe Mathieu-Daudé
2023-01-25 11:58     ` Alex Bennée
2023-01-26 12:43       ` Peter Maydell
2023-01-10 16:44 ` [PATCH 13/18] hw/arm/fsl-imx: Correct GPIO/GPT index in QOM tree Philippe Mathieu-Daudé
2025-04-02  4:12   ` Philippe Mathieu-Daudé
2023-01-10 16:44 ` [PATCH 14/18] hw/arm/fsl-imx25: Replace object_initialize(ARMCPU) by object_new() Philippe Mathieu-Daudé
2023-01-10 16:44 ` [PATCH 15/18] hw/arm/fsl-imx31: " Philippe Mathieu-Daudé
2023-01-10 16:44 ` [PATCH 16/18] hw/arm/fsl-imx7: " Philippe Mathieu-Daudé
2023-01-10 16:44 ` [PATCH 17/18] hw/arm/fsl-imx6: " Philippe Mathieu-Daudé
2023-01-10 16:44 ` [PATCH 18/18] hw/arm/allwinner: " Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230110164406.94366-2-philmd@linaro.org \
    --to=philmd@linaro.org \
    --cc=ale@rev.ng \
    --cc=alex.bennee@linaro.org \
    --cc=andrew.smirnov@gmail.com \
    --cc=antonio.caggiano@collabora.com \
    --cc=antonynpavlov@gmail.com \
    --cc=b.galvani@gmail.com \
    --cc=jan.kiszka@web.de \
    --cc=jcd@tribudubois.net \
    --cc=nieklinnenbank@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=robh@kernel.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.