Skip to content

target/arm: More header rework around arm_feature() & multiprocessing.h

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19target/arm/tcg-stubs: compile file once (system)target/arm/meson.build+1 -13 replies
2/19target/arm/hvf_arm: Avoid using poisoned CONFIG_HVF definitionMAINTAINERS target/arm/hvf-stub.c target/arm/hvf_arm.h +1 more+22 -162 replies
3/19target/arm: Only link with zlib when TCG is enabledtarget/arm/meson.build target/arm/tcg/meson.build+2 -11 reply
4/19target/arm/cpregs: Include missing 'target/arm/cpu.h' headertarget/arm/cpregs.h+1 -00 replies
5/19hw/arm/boot: Include missing 'system/memory.h' headerhw/arm/boot.c+1 -00 replies
6/19target/arm/cpu-features: Include missing 'cpu.h' headertarget/arm/cpu-features.h+1 -00 replies
7/19target/arm/qmp: Include missing 'cpu.h' headertarget/arm/arm-qmp-cmds.c+1 -00 replies
8/19target/arm/kvm: Include missing 'cpu-qom.h' headertarget/arm/kvm_arm.h+1 -00 replies
9/19target/arm/hvf: Include missing 'cpu-qom.h' headertarget/arm/hvf_arm.h+1 -10 replies
10/19hw/arm: Remove unnecessary 'cpu.h' headerhw/arm/exynos4210.c hw/arm/highbank.c hw/arm/mps3r.c +1 more+0 -40 replies
11/19target/arm: Restrict inclusion of 'multiprocessing.h'target/arm/cpu.c target/arm/cpu.h+1 -10 replies
12/19target/arm: Move some definitions from 'cpu.h' to 'multiprocessing.h'hw/arm/aspeed_ast2600.c hw/arm/aspeed_ast27x0.c hw/arm/exynos4210.c +6 more+25 -170 replies
13/19hw/arm: Include missing 'target/arm/gtimer.h' headerhw/arm/aspeed_ast27x0.c hw/arm/bcm2838.c hw/arm/exynos4210.c +5 more+8 -00 replies
14/19target/arm: Extract PSCI definitions to 'psci.h'hw/arm/bananapi_m2u.c hw/arm/boot.c hw/arm/highbank.c +17 more+39 -60 replies
15/19target/arm: Extract feature definitions to 'cpu_has_feature.h' headertarget/arm/cpu.h target/arm/cpu_has_feature.h+66 -530 replies
16/19target/arm: Add arm_cpu_has_feature() helpertarget/arm/cpu.c target/arm/cpu_has_feature.h+9 -07 replies
17/19hw/arm/realview: Replace arm_feature() -> arm_cpu_has_feature()hw/arm/realview.c+4 -60 replies
18/19hw/arm/virt-acpi: Replace arm_feature() -> arm_cpu_has_feature()hw/arm/virt-acpi-build.c+2 -10 replies
19/19target/arm: Always include full path to 'cpu.h'target/arm/arch_dump.c target/arm/arm-powerctl.c target/arm/arm-qmp-cmds.c +36 more+39 -391 reply

Reviews trailers per patch

All 19 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonPierrick Bouvier
1/19R-b R-b
2/19R-b R-b
3/19R-b
4/19R-b
5/19R-b
6/19R-b
7/19R-b
8/19R-b
9/19R-b
10/19R-b
11/19R-b
12/19R-b
13/19R-b
14/19R-b
15/19R-b
16/19R-b
17/19R-b
18/19R-b
19/19R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/19] target/arm: More header rework around arm_feature() & multiprocessing.h

Before I respin my "single-binary: Make hw/arm/ common" [1] I'm extracting these random cleanup patches. Some aren't necessary anymore because now units in arm_common_ss[] can access "cpu.h", but the patches are reviewed and simplify a bit IMO.

Based-on: <[email protected]>
"single-binary: compile target/arm twice"

[1] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (19):
target/arm/tcg-stubs: compile file once (system) target/arm/hvf_arm: Avoid using poisoned CONFIG_HVF definition target/arm: Only link with zlib when TCG is enabled target/arm/cpregs: Include missing 'target/arm/cpu.h' header hw/arm/boot: Include missing 'system/memory.h' header target/arm/cpu-features: Include missing 'cpu.h' header target/arm/qmp: Include missing 'cpu.h' header target/arm/kvm: Include missing 'cpu-qom.h' header target/arm/hvf: Include missing 'cpu-qom.h' header
hw/arm: Remove unnecessary 'cpu.h' header
target/arm: Restrict inclusion of 'multiprocessing.h' target/arm: Move some definitions from 'cpu.h' to 'multiprocessing.h' hw/arm: Include missing 'target/arm/gtimer.h' header target/arm: Extract PSCI definitions to 'psci.h' target/arm: Extract feature definitions to 'cpu_has_feature.h' header target/arm: Add arm_cpu_has_feature() helper hw/arm/realview: Replace arm_feature() -> arm_cpu_has_feature() hw/arm/virt-acpi: Replace arm_feature() -> arm_cpu_has_feature() target/arm: Always include full path to 'cpu.h'

 MAINTAINERS                    |  1 +
 include/hw/arm/boot.h          |  3 +-
 target/arm/cpregs.h            |  1 +
 target/arm/cpu-features.h      |  1 +
 target/arm/cpu.h               | 79 ++--------------------------------
 target/arm/cpu_has_feature.h   | 67 ++++++++++++++++++++++++++++
 target/arm/hvf_arm.h           | 18 +-------
 target/arm/kvm_arm.h           |  1 +
 target/arm/multiprocessing.h   | 18 ++++++++
 target/arm/psci.h              | 18 ++++++++
 target/arm/tcg/translate.h     |  2 +-
 hw/arm/aspeed_ast2600.c        |  1 +
 hw/arm/aspeed_ast27x0.c        |  2 +
 hw/arm/bananapi_m2u.c          |  1 +
 hw/arm/bcm2838.c               |  1 +
 hw/arm/boot.c                  |  2 +
 hw/arm/exynos4210.c            |  3 +-
 hw/arm/fsl-imx8mp.c            |  1 +
 hw/arm/highbank.c              |  2 +-
 hw/arm/imx8mp-evk.c            |  1 +
 hw/arm/mcimx6ul-evk.c          |  1 +
 hw/arm/mcimx7d-sabre.c         |  1 +
 hw/arm/mps3r.c                 |  2 +-
 hw/arm/npcm8xx.c               |  2 +
 hw/arm/orangepi.c              |  1 +
 hw/arm/realview.c              | 10 ++---
 hw/arm/sbsa-ref.c              |  2 +
 hw/arm/smmuv3.c                |  1 -
 hw/arm/virt-acpi-build.c       |  4 +-
 hw/arm/virt.c                  |  1 +
 hw/arm/xlnx-versal-virt.c      |  1 +
 hw/arm/xlnx-zcu102.c           |  1 +
 hw/vmapple/vmapple.c           |  3 ++
 target/arm/arch_dump.c         |  2 +-
 target/arm/arm-powerctl.c      |  2 +-
 target/arm/arm-qmp-cmds.c      |  1 +
 target/arm/cortex-regs.c       |  2 +-
 target/arm/cpu.c               | 10 ++++-
 target/arm/cpu64.c             |  2 +-
 target/arm/debug_helper.c      |  2 +-
 target/arm/gdbstub.c           |  2 +-
 target/arm/gdbstub64.c         |  2 +-
 target/arm/helper.c            |  3 +-
 target/arm/hvf-stub.c          | 20 +++++++++
 target/arm/hvf/hvf.c           |  1 +
 target/arm/hyp_gdbstub.c       |  2 +-
 target/arm/kvm-stub.c          |  2 +-
 target/arm/kvm.c               |  3 +-
 target/arm/machine.c           |  2 +-
 target/arm/ptw.c               |  2 +-
 target/arm/tcg-stubs.c         |  2 +-
 target/arm/tcg/cpu-v7m.c       |  2 +-
 target/arm/tcg/cpu32.c         |  2 +-
 target/arm/tcg/cpu64.c         |  2 +-
 target/arm/tcg/helper-a64.c    |  2 +-
 target/arm/tcg/hflags.c        |  2 +-
 target/arm/tcg/iwmmxt_helper.c |  2 +-
 target/arm/tcg/m_helper.c      |  2 +-
 target/arm/tcg/mte_helper.c    |  2 +-
 target/arm/tcg/mve_helper.c    |  2 +-
 target/arm/tcg/neon_helper.c   |  2 +-
 target/arm/tcg/op_helper.c     |  4 +-
 target/arm/tcg/pauth_helper.c  |  2 +-
 target/arm/tcg/psci.c          |  3 +-
 target/arm/tcg/sme_helper.c    |  2 +-
 target/arm/tcg/sve_helper.c    |  2 +-
 target/arm/tcg/tlb-insns.c     |  2 +-
 target/arm/tcg/tlb_helper.c    |  2 +-
 target/arm/tcg/vec_helper.c    |  2 +-
 target/arm/tcg/vfp_helper.c    |  2 +-
 target/arm/vfp_fpscr.c         |  2 +-
 target/arm/meson.build         |  4 +-
 target/arm/tcg/meson.build     |  2 +
 73 files changed, 221 insertions(+), 143 deletions(-)
 create mode 100644 target/arm/cpu_has_feature.h
 create mode 100644 target/arm/psci.h
 create mode 100644 target/arm/hvf-stub.c
Signature · 1 line
2.47.1