public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
	Pierrick Bouvier <pierrick.bouvier@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Thomas Huth <thuth@redhat.com>, Anton Johansson <anjo@rev.ng>
Subject: [PATCH v2 00/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore
Date: Fri, 13 Mar 2026 07:20:16 +0100	[thread overview]
Message-ID: <20260313062055.2188-1-philmd@linaro.org> (raw)

Pierrick noticed [*] "exec/cpu-defs.h" isn't really used by
each target "cpu.h". However various source files rely on it
(or actually a small subset of it: "exec/target_long.h").

This series first includes the missing headers that were
indirectly pulled via "cpu.h" -> "exec/cpu-defs.h", then
remove it for each target "cpu.h".

As another cleanup we use the full path to target "cpu.h".

[*] v1: https://lore.kernel.org/qemu-devel/20260312224702.1608408-2-pierrick.bouvier@linaro.org/

Philippe Mathieu-Daudé (37):
  target/arm: Remove target_ulong use in hvf_handle_psci_call()
  target/ppc: Replace TARGET_PAGE_BITS -> qemu_target_page_bits()
  hw/s390x/vfio: Replace TARGET_PAGE_BITS -> qemu_target_page_bits()
  monitor/hmp: : Include missing 'exec/target_long.h' header
  target-info: Include 'exec/cpu-defs.h' explicitly
  target/xtensa: Restrict inclusion of 'exec/cpu-defs.h' header
  target/hexagon: Include missing 'exec/target_long.h' header
  target/hppa: Include missing 'exec/target_long.h' header
  target/i386: Include missing 'exec/target_long.h' header
  target/m68k: Include missing 'exec/target_long.h' header
  target/mips: Include missing 'exec/target_long.h' header
  target/ppc: Include missing 'exec/target_long.h' header
  target/riscv: Include missing 'exec/target_long.h' header
  target/sparc: Include missing 'exec/target_long.h' header
  system/kvm_xen: Include missing 'exec/target_page.h' header
  hw/misc/cpc: Include missing 'hw/core/cpu.h' header
  target/s390x/tcg: Include missing '*cpu.h' headers
  exec/helper-head: Include missing 'exec/target_long.h' header
  target/cpu: Do not include 'exec/cpu-defs.h' anymore
  hw/alpha: Include full path to target 'cpu.h' header
  hw/arm: Include full path to target 'cpu.h' header
  hw/avr: Include full path to target 'cpu.h' header
  hw/hppa: Include full path to target 'cpu.h' header
  hw/i386: Include full path to target 'cpu.h' header
  hw/m68k: Include full path to target 'cpu.h' header
  hw/microblaze: Include full path to target 'cpu.h' header
  hw/mips: Include full path to target 'cpu.h' header
  hw/or1k: Include full path to target 'cpu.h' header
  hw/ppc: Include full path to target 'cpu.h' header
  hw/riscv: Include full path to target 'cpu.h' header
  hw/s390x: Include full path to target 'cpu.h' header
  hw/sh4: Include full path to target 'cpu.h' header
  hw/sparc: Include full path to target 'cpu.h' header
  hw/tricore: Include full path to target 'cpu.h' header
  hw/xtensa: Include full path to target 'cpu.h' header
  hw/avr: Build as common unit files
  hw/misc: Build 'mac_via' as common unit file

Pierrick Bouvier (1):
  hw/misc/allwinner-cpucfg.c: make compilation unit common

 hw/avr/boot.h                            |  2 +-
 hw/s390x/ipl.h                           |  2 +-
 hw/s390x/s390-hypercall.h                |  2 +-
 hw/xtensa/xtensa_memory.h                |  2 +-
 include/hw/arm/digic.h                   |  2 +-
 include/hw/arm/fsl-imx6.h                |  2 +-
 include/hw/arm/fsl-imx6ul.h              |  2 +-
 include/hw/arm/fsl-imx7.h                |  2 +-
 include/hw/arm/fsl-imx8mp.h              |  2 +-
 include/hw/i386/apic_internal.h          |  2 +-
 include/hw/intc/mips_gic.h               |  2 +-
 include/hw/ppc/pnv.h                     |  2 +-
 include/hw/ppc/spapr_fadump.h            |  2 +-
 include/hw/ppc/spapr_ovec.h              |  2 +-
 include/monitor/hmp-target.h             |  2 +-
 include/system/kvm_xen.h                 |  2 ++
 target/alpha/cpu.h                       |  1 -
 target/arm/cpu.h                         |  1 -
 target/avr/cpu.h                         |  1 -
 target/hexagon/cpu.h                     |  3 ++-
 target/hexagon/mmvec/mmvec.h             |  3 +++
 target/hppa/cpu.h                        |  2 +-
 target/i386/cpu.h                        |  2 +-
 target/loongarch/cpu.h                   |  1 -
 target/m68k/cpu.h                        |  1 -
 target/microblaze/cpu.h                  |  1 -
 target/mips/cpu.h                        |  2 +-
 target/or1k/cpu.h                        |  1 -
 target/ppc/cpu.h                         |  2 +-
 target/riscv/cpu.h                       |  2 +-
 target/riscv/debug.h                     |  1 +
 target/riscv/pmp.h                       |  1 +
 target/rx/cpu.h                          |  1 -
 target/s390x/cpu.h                       |  1 -
 target/s390x/tcg/tcg_s390x.h             |  3 +++
 target/sh4/cpu.h                         |  1 -
 target/sparc/cpu.h                       |  2 +-
 target/tricore/cpu.h                     |  1 -
 target/xtensa/cpu.h                      |  1 -
 include/exec/helper-head.h.inc           | 15 +++++++--------
 hw/alpha/dp264.c                         |  2 +-
 hw/alpha/typhoon.c                       |  2 +-
 hw/arm/boot.c                            |  2 +-
 hw/arm/exynos4210.c                      |  2 +-
 hw/arm/mps3r.c                           |  2 +-
 hw/arm/omap1.c                           |  2 +-
 hw/arm/realview.c                        |  2 +-
 hw/arm/smmuv3.c                          |  2 +-
 hw/hppa/machine.c                        |  2 +-
 hw/i386/multiboot.c                      |  2 +-
 hw/i386/pc_sysfw_ovmf.c                  |  2 +-
 hw/i386/vmmouse.c                        |  2 +-
 hw/intc/arm_gicv3_cpuif.c                |  2 +-
 hw/intc/arm_gicv3_cpuif_common.c         |  2 +-
 hw/intc/m68k_irqc.c                      |  2 +-
 hw/intc/sh_intc.c                        |  2 +-
 hw/isa/lpc_ich9.c                        |  2 +-
 hw/m68k/an5206.c                         |  2 +-
 hw/m68k/mcf5206.c                        |  2 +-
 hw/m68k/mcf5208.c                        |  2 +-
 hw/m68k/mcf_intc.c                       |  2 +-
 hw/m68k/q800-glue.c                      |  2 +-
 hw/m68k/q800.c                           |  2 +-
 hw/m68k/virt.c                           |  2 +-
 hw/microblaze/boot.c                     |  2 +-
 hw/microblaze/petalogix_ml605_mmu.c      |  2 +-
 hw/microblaze/petalogix_s3adsp1800_mmu.c |  2 +-
 hw/microblaze/xlnx-zynqmp-pmu.c          |  2 +-
 hw/mips/bootloader.c                     |  2 +-
 hw/mips/fuloong2e.c                      |  2 +-
 hw/mips/jazz.c                           |  2 +-
 hw/mips/malta.c                          |  2 +-
 hw/misc/mips_cpc.c                       |  3 ++-
 hw/misc/riscv_cmgcr.c                    |  3 ++-
 hw/misc/riscv_cpc.c                      |  3 ++-
 hw/or1k/boot.c                           |  2 +-
 hw/or1k/cputimer.c                       |  2 +-
 hw/or1k/or1k-sim.c                       |  2 +-
 hw/or1k/virt.c                           |  2 +-
 hw/ppc/mpc8544_guts.c                    |  2 +-
 hw/ppc/mpc8544ds.c                       |  2 +-
 hw/ppc/ppc440_uc.c                       |  2 +-
 hw/ppc/ppc4xx_devs.c                     |  2 +-
 hw/ppc/ppc_booke.c                       |  2 +-
 hw/ppc/prep_systemio.c                   |  2 +-
 hw/ppc/spapr_vhyp_mmu.c                  |  2 +-
 hw/ppc/virtex_ml507.c                    |  2 +-
 hw/riscv/microblaze-v-generic.c          |  2 +-
 hw/s390x/ap-bridge.c                     |  2 +-
 hw/s390x/s390-hypercall.c                |  2 +-
 hw/s390x/s390-pci-vfio.c                 |  3 ++-
 hw/s390x/s390-stattrib.c                 |  2 +-
 hw/s390x/tod-tcg.c                       |  2 +-
 hw/sh4/r2d.c                             |  2 +-
 hw/sparc/leon3.c                         |  2 +-
 hw/sparc/sun4m.c                         |  2 +-
 hw/sparc64/niagara.c                     |  2 +-
 hw/sparc64/sparc64.c                     |  2 +-
 hw/sparc64/sun4u.c                       |  2 +-
 hw/tricore/tricore_testboard.c           |  2 +-
 hw/xtensa/pic_cpu.c                      |  2 +-
 hw/xtensa/xtfpga.c                       |  2 +-
 target-info-stub.c                       |  1 +
 target/arm/hvf/hvf.c                     |  2 +-
 target/m68k/m68k-semi.c                  |  2 +-
 target/ppc/mmu-booke.c                   |  3 ++-
 target/ppc/mmu-hash64.c                  |  3 ++-
 target/ppc/mmu-radix64.c                 |  3 ++-
 target/xtensa/cpu.c                      |  1 +
 hw/misc/meson.build                      |  6 +++---
 hw/timer/meson.build                     |  2 +-
 111 files changed, 120 insertions(+), 113 deletions(-)

-- 
2.53.0



             reply	other threads:[~2026-03-13  6:21 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13  6:20 Philippe Mathieu-Daudé [this message]
2026-03-13  6:20 ` [PATCH v2 01/38] target/arm: Remove target_ulong use in hvf_handle_psci_call() Philippe Mathieu-Daudé
2026-03-13 16:23   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 02/38] target/ppc: Replace TARGET_PAGE_BITS -> qemu_target_page_bits() Philippe Mathieu-Daudé
2026-03-13 16:24   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 03/38] hw/s390x/vfio: " Philippe Mathieu-Daudé
2026-03-13 10:25   ` Thomas Huth
2026-03-13 14:05     ` Cédric Le Goater
2026-03-13 16:28   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 04/38] monitor/hmp: : Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 10:28   ` Thomas Huth
2026-03-13 16:28   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 05/38] target-info: Include 'exec/cpu-defs.h' explicitly Philippe Mathieu-Daudé
2026-03-13 16:29   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 06/38] target/xtensa: Restrict inclusion of 'exec/cpu-defs.h' header Philippe Mathieu-Daudé
2026-03-13 16:30   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 07/38] target/hexagon: Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 14:16   ` Brian Cain
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 08/38] target/hppa: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 09/38] target/i386: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 10/38] target/m68k: " Philippe Mathieu-Daudé
2026-03-13 10:33   ` Thomas Huth
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 11/38] target/mips: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 12/38] target/ppc: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 13/38] target/riscv: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 14/38] target/sparc: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 15/38] system/kvm_xen: Include missing 'exec/target_page.h' header Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 16/38] hw/misc/cpc: Include missing 'hw/core/cpu.h' header Philippe Mathieu-Daudé
2026-03-13 10:34   ` Thomas Huth
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 17/38] target/s390x/tcg: Include missing '*cpu.h' headers Philippe Mathieu-Daudé
2026-03-13 10:29   ` Thomas Huth
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 18/38] exec/helper-head: Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 19/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 20/38] hw/alpha: Include full path to target 'cpu.h' header Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 21/38] hw/arm: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 22/38] hw/avr: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 23/38] hw/hppa: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 24/38] hw/i386: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 25/38] hw/m68k: " Philippe Mathieu-Daudé
2026-03-13 10:29   ` Thomas Huth
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 26/38] hw/microblaze: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 27/38] hw/mips: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 28/38] hw/or1k: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 29/38] hw/ppc: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 30/38] hw/riscv: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 31/38] hw/s390x: " Philippe Mathieu-Daudé
2026-03-13 10:30   ` Thomas Huth
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 32/38] hw/sh4: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 33/38] hw/sparc: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 34/38] hw/tricore: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 35/38] hw/xtensa: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 36/38] hw/misc/allwinner-cpucfg.c: make compilation unit common Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 37/38] hw/avr: Build as common unit files Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 38/38] hw/misc: Build 'mac_via' as common unit file Philippe Mathieu-Daudé
2026-03-13 10:32   ` Thomas Huth
2026-03-13 16:41   ` Pierrick Bouvier
2026-03-13 16:42 ` [PATCH v2 00/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Pierrick Bouvier
2026-03-23  9:54 ` 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=20260313062055.2188-1-philmd@linaro.org \
    --to=philmd@linaro.org \
    --cc=anjo@rev.ng \
    --cc=pbonzini@redhat.com \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox