mbox series

[v3,00/13] include: Remove "exec/exec-all.h"

Message ID 20250424202412.91612-1-philmd@linaro.org
Headers show
Series include: Remove "exec/exec-all.h" | expand

Message

Philippe Mathieu-Daudé April 24, 2025, 8:23 p.m. UTC
Since v2:
- Removed CONFIG_TCG #ifdef'ry (rth)
- Added R-b/A-b tags

Trivial series moving declarations around, emptying
"exec/exec-all.h" to eventually remove it.

- Fix accel/stubs/tcg-stub.c headers
- Include "accel/tcg/getpc.h" where appropriate
- Extract TCG IOMMU API to "accel/tcg/iommu.h"
- Extract TCG probe API to "accel/tcg/probe.h"
- Remove "exec/exec-all.h"

It is based on "accel/tcg: Compile tb-maint.c twice".
I had to fix its patch #12, so I'm including patches
12-15 in this series.

Based-on: <20250424011918.599958-12-richard.henderson@linaro.org>

Philippe Mathieu-Daudé (9):
  accel/tcg: Correct list of included headers in tcg-stub.c
  include/exec: Include missing headers in exec-all.h
  target/riscv: Include missing 'accel/tcg/getpc.h' in csr.c
  target/hexagon: Include missing 'accel/tcg/getpc.h'
  accel/tcg: Include 'accel/tcg/getpc.h' in 'exec/helper-proto'
  physmem: Move TCG IOTLB methods around
  physmem: Restrict TCG IOTLB code to TCG accel
  accel/tcg: Extract probe API out of 'exec/exec-all.h'
  include: Remove 'exec/exec-all.h'

Richard Henderson (4):
  accel/tcg: Use vaddr for walk_memory_regions callback
  accel/tcg: Use vaddr in user/page-protection.h
  include/exec: Move tb_invalidate_phys_range to translation-block.h
  accel/tcg: Compile tb-maint.c twice

 MAINTAINERS                                   |  3 +-
 accel/tcg/tb-hash.h                           |  3 +-
 bsd-user/qemu.h                               |  1 -
 include/accel/tcg/iommu.h                     | 41 ++++++++++++
 .../{exec/exec-all.h => accel/tcg/probe.h}    | 58 ++---------------
 include/exec/helper-proto-common.h            |  2 +
 include/exec/translation-block.h              |  4 ++
 include/system/ram_addr.h                     |  1 -
 include/user/page-protection.h                | 22 +++----
 linux-user/user-internals.h                   |  1 -
 target/arm/tcg/translate.h                    |  1 -
 target/hexagon/macros.h                       |  1 +
 target/hexagon/mmvec/macros.h                 |  2 +
 target/i386/tcg/helper-tcg.h                  |  1 -
 accel/hvf/hvf-accel-ops.c                     |  1 -
 accel/stubs/tcg-stub.c                        |  3 +-
 accel/tcg/cputlb.c                            |  3 +-
 accel/tcg/tb-maint.c                          |  2 -
 accel/tcg/translate-all.c                     |  2 +-
 accel/tcg/user-exec.c                         | 63 +++++++++----------
 bsd-user/main.c                               |  1 -
 hw/ppc/spapr_nested.c                         |  1 -
 hw/riscv/riscv-iommu-sys.c                    |  1 -
 hw/sh4/sh7750.c                               |  1 -
 linux-user/elfload.c                          | 19 +++---
 linux-user/main.c                             |  1 -
 linux-user/syscall.c                          |  8 +--
 semihosting/uaccess.c                         |  2 +-
 system/physmem.c                              | 56 +++++++++--------
 target/alpha/cpu.c                            |  1 -
 target/alpha/fpu_helper.c                     |  1 -
 target/alpha/int_helper.c                     |  1 -
 target/alpha/mem_helper.c                     |  1 -
 target/alpha/translate.c                      |  1 -
 target/alpha/vax_helper.c                     |  1 -
 target/arm/cpu.c                              |  1 -
 target/arm/debug_helper.c                     |  1 -
 target/arm/helper.c                           |  2 +-
 target/arm/ptw.c                              |  2 +-
 target/arm/tcg/helper-a64.c                   |  2 +-
 target/arm/tcg/m_helper.c                     |  1 -
 target/arm/tcg/mte_helper.c                   |  2 +-
 target/arm/tcg/mve_helper.c                   |  1 -
 target/arm/tcg/op_helper.c                    |  2 +-
 target/arm/tcg/pauth_helper.c                 |  1 -
 target/arm/tcg/sme_helper.c                   |  1 -
 target/arm/tcg/sve_helper.c                   |  2 +-
 target/arm/tcg/tlb_helper.c                   |  1 -
 target/arm/tcg/translate-a64.c                |  1 -
 target/avr/cpu.c                              |  1 -
 target/avr/helper.c                           |  1 -
 target/avr/translate.c                        |  1 -
 target/hexagon/cpu.c                          |  1 -
 target/hexagon/op_helper.c                    |  2 +-
 target/hppa/cpu.c                             |  1 -
 target/hppa/fpu_helper.c                      |  1 -
 target/hppa/helper.c                          |  1 -
 target/hppa/mem_helper.c                      |  2 +-
 target/hppa/op_helper.c                       |  2 +-
 target/hppa/sys_helper.c                      |  1 -
 target/hppa/translate.c                       |  1 -
 target/i386/tcg/access.c                      |  2 +-
 target/i386/tcg/excp_helper.c                 |  1 -
 target/i386/tcg/int_helper.c                  |  1 -
 target/i386/tcg/mem_helper.c                  |  1 -
 target/i386/tcg/mpx_helper.c                  |  1 -
 target/i386/tcg/seg_helper.c                  |  2 +-
 target/i386/tcg/system/bpt_helper.c           |  1 -
 target/i386/tcg/system/excp_helper.c          |  1 +
 target/i386/tcg/translate.c                   |  1 -
 target/i386/tcg/user/excp_helper.c            |  1 -
 target/i386/tcg/user/seg_helper.c             |  1 -
 target/loongarch/cpu.c                        |  1 -
 target/loongarch/tcg/fpu_helper.c             |  1 -
 target/loongarch/tcg/iocsr_helper.c           |  1 -
 target/loongarch/tcg/op_helper.c              |  1 -
 target/loongarch/tcg/tlb_helper.c             |  1 -
 target/loongarch/tcg/vec_helper.c             |  1 -
 target/m68k/fpu_helper.c                      |  1 -
 target/m68k/helper.c                          |  1 -
 target/m68k/op_helper.c                       |  1 -
 target/m68k/translate.c                       |  1 -
 target/microblaze/cpu.c                       |  1 -
 target/microblaze/op_helper.c                 |  1 -
 target/microblaze/translate.c                 |  1 -
 target/mips/cpu.c                             |  1 -
 target/mips/system/physaddr.c                 |  1 -
 target/mips/tcg/exception.c                   |  1 -
 target/mips/tcg/fpu_helper.c                  |  1 -
 target/mips/tcg/ldst_helper.c                 |  1 -
 target/mips/tcg/msa_helper.c                  |  2 +-
 target/mips/tcg/op_helper.c                   |  1 -
 target/mips/tcg/system/special_helper.c       |  1 -
 target/mips/tcg/system/tlb_helper.c           |  1 -
 target/openrisc/cpu.c                         |  1 -
 target/openrisc/exception.c                   |  1 -
 target/openrisc/exception_helper.c            |  1 -
 target/openrisc/fpu_helper.c                  |  1 -
 target/openrisc/interrupt.c                   |  1 -
 target/openrisc/interrupt_helper.c            |  1 -
 target/openrisc/sys_helper.c                  |  1 -
 target/openrisc/translate.c                   |  1 -
 target/ppc/excp_helper.c                      |  1 -
 target/ppc/fpu_helper.c                       |  1 -
 target/ppc/machine.c                          |  1 -
 target/ppc/mem_helper.c                       |  2 +-
 target/ppc/misc_helper.c                      |  1 -
 target/ppc/mmu-hash32.c                       |  1 -
 target/ppc/mmu-hash64.c                       |  1 -
 target/ppc/mmu-radix64.c                      |  1 -
 target/ppc/mmu_common.c                       |  1 -
 target/ppc/mmu_helper.c                       |  1 -
 target/ppc/power8-pmu.c                       |  1 -
 target/ppc/tcg-excp_helper.c                  |  1 -
 target/ppc/timebase_helper.c                  |  1 -
 target/ppc/translate.c                        |  1 -
 target/ppc/user_only_helper.c                 |  1 -
 target/riscv/cpu.c                            |  1 -
 target/riscv/cpu_helper.c                     |  1 -
 target/riscv/crypto_helper.c                  |  1 -
 target/riscv/csr.c                            |  2 +-
 target/riscv/debug.c                          |  1 -
 target/riscv/fpu_helper.c                     |  1 -
 target/riscv/m128_helper.c                    |  1 -
 target/riscv/op_helper.c                      |  2 +-
 target/riscv/tcg/tcg-cpu.c                    |  1 -
 target/riscv/translate.c                      |  1 -
 target/riscv/vcrypto_helper.c                 |  1 -
 target/riscv/vector_helper.c                  |  2 +-
 target/riscv/zce_helper.c                     |  1 -
 target/rx/op_helper.c                         |  1 -
 target/rx/translate.c                         |  1 -
 target/s390x/interrupt.c                      |  1 -
 target/s390x/mmu_helper.c                     |  1 -
 target/s390x/sigp.c                           |  1 -
 target/s390x/tcg/cc_helper.c                  |  1 -
 target/s390x/tcg/crypto_helper.c              |  1 -
 target/s390x/tcg/excp_helper.c                |  1 -
 target/s390x/tcg/fpu_helper.c                 |  1 -
 target/s390x/tcg/int_helper.c                 |  1 -
 target/s390x/tcg/mem_helper.c                 |  2 +-
 target/s390x/tcg/misc_helper.c                |  1 -
 target/s390x/tcg/translate.c                  |  1 -
 target/s390x/tcg/vec_fpu_helper.c             |  1 -
 target/s390x/tcg/vec_helper.c                 |  1 -
 target/sh4/cpu.c                              |  1 -
 target/sh4/helper.c                           |  1 -
 target/sh4/op_helper.c                        |  1 -
 target/sh4/translate.c                        |  1 -
 target/sparc/cpu.c                            |  1 -
 target/sparc/fop_helper.c                     |  1 -
 target/sparc/helper.c                         |  1 -
 target/sparc/ldst_helper.c                    |  1 -
 target/sparc/machine.c                        |  1 -
 target/sparc/translate.c                      |  1 -
 target/sparc/win_helper.c                     |  1 -
 target/tricore/cpu.c                          |  1 -
 target/tricore/op_helper.c                    |  1 -
 target/tricore/translate.c                    |  1 -
 target/xtensa/dbg_helper.c                    |  1 -
 target/xtensa/exc_helper.c                    |  1 -
 target/xtensa/fpu_helper.c                    |  1 -
 target/xtensa/mmu_helper.c                    |  2 +-
 target/xtensa/op_helper.c                     |  1 -
 target/xtensa/translate.c                     |  1 -
 target/xtensa/win_helper.c                    |  1 -
 accel/tcg/meson.build                         |  2 +-
 167 files changed, 165 insertions(+), 297 deletions(-)
 create mode 100644 include/accel/tcg/iommu.h
 rename include/{exec/exec-all.h => accel/tcg/probe.h} (65%)