Skip to content

single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS

Anton Johansson via qemu development qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected] change-id 20251104-phys_addr-b0f47ea3014a

Versions newest first

  1. v6 Latest7 patches 4 repliesIn review
  2. v57 patches 1 replySuperseded
  3. v48 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches5 repliesSuperseded
v27 patches1 replySuperseded
v17 patches4 repliesSuperseded

Changes in v6 from the cover letter

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7target/hppa: Define PA[20|1X] physical address space sizetarget/hppa/cpu.h target/hppa/mem_helper.c+28 -50 replies
2/7hw/hppa: Use hppa_abs_to_phys_pa1x()hw/hppa/machine.c+1 -10 replies
3/7target/i386: Drop physical address range checkstarget/i386/cpu.c target/i386/kvm/kvm.c target/i386/tcg/helper-tcg.h+4 -100 replies
4/7target/loongarch: Introduce loongarch_palen_mask()target/loongarch/cpu-mmu.h target/loongarch/cpu_helper.c target/loongarch/internals.h +1 more+21 -80 replies
5/7hw/loongarch: Use loongarch_palen_mask()hw/loongarch/boot.c hw/loongarch/virt.c include/hw/loongarch/boot.h+22 -140 replies
6/7hw/riscv: Set IOMMU PAS via propertyhw/riscv/riscv-iommu-pci.c hw/riscv/riscv-iommu.c hw/riscv/riscv-iommu.h +1 more+15 -41 reply
7/7Drop TARGET_PHYS_ADDR_SPACE_BITSinclude/exec/cpu-defs.h include/exec/poison.h target/alpha/cpu-param.h +18 more+0 -402 replies

Reviews trailers per patch

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

PatchRichard HendersonBrian CainChao Liu
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/7] single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS

The target macro TARGET_PHYS_ADDR_SPACE_BITS is unused since commit

2e8fe327eb6 ("accel/tcg: Simplify L1_MAP_ADDR_SPACE_BITS"),

replace the handful of remaining uses with runtime functions or constants.

For discussion see:

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

Series fully reviewed.

---
Changes in v6:
- Added reviewed-bys
- Link to v5: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v5:
- Added RISCVIOMMUState::pas_bits property (Richard, Chao);
- Dropped already merged alpha patch (Philippe);
- Added reviewed-bys;
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v4:
- Revert to using 40 bit physical addresses for HPPA to not break SeaBIOS functional tests. This will be addressed in a separate series;
- Added HPPA patch 3/8 to convert a missed 32-bit abs -> physical
address conversion;
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v3:
- Added reviewed-by;
- Widened CC;
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v2:
- Move alpha_phys_addr_space_bits() to linux-user/alpha/target_proc.h (Richard);
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]

---
Anton Johansson (7):
target/hppa: Define PA[20|1X] physical address space size hw/hppa: Use hppa_abs_to_phys_pa1x() target/i386: Drop physical address range checks target/loongarch: Introduce loongarch_palen_mask() hw/loongarch: Use loongarch_palen_mask() hw/riscv: Set IOMMU PAS via property
Drop TARGET_PHYS_ADDR_SPACE_BITS

 hw/riscv/riscv-iommu.h            |  1 +
 include/exec/cpu-defs.h           |  3 ---
 include/exec/poison.h             |  2 --
 include/hw/loongarch/boot.h       |  3 ++-
 target/alpha/cpu-param.h          |  3 ---
 target/arm/cpu-param.h            |  2 --
 target/avr/cpu-param.h            |  1 -
 target/hexagon/cpu-param.h        |  1 -
 target/hppa/cpu-param.h           |  3 ---
 target/hppa/cpu.h                 |  1 +
 target/i386/cpu-param.h           |  2 --
 target/i386/tcg/helper-tcg.h      |  2 --
 target/loongarch/cpu-mmu.h        |  1 +
 target/loongarch/cpu-param.h      |  1 -
 target/loongarch/internals.h      |  1 -
 target/m68k/cpu-param.h           |  1 -
 target/microblaze/cpu-param.h     |  2 --
 target/mips/cpu-param.h           |  2 --
 target/or1k/cpu-param.h           |  1 -
 target/ppc/cpu-param.h            |  7 -------
 target/riscv/cpu-param.h          |  2 --
 target/rx/cpu-param.h             |  1 -
 target/s390x/cpu-param.h          |  1 -
 target/sh4/cpu-param.h            |  1 -
 target/sparc/cpu-param.h          |  2 --
 target/tricore/cpu-param.h        |  1 -
 target/xtensa/cpu-param.h         |  1 -
 hw/hppa/machine.c                 |  2 +-
 hw/loongarch/boot.c               | 28 ++++++++++++++++------------
 hw/loongarch/virt.c               |  5 ++++-
 hw/riscv/riscv-iommu-pci.c        |  3 +++
 hw/riscv/riscv-iommu.c            |  8 ++++----
 hw/riscv/virt.c                   |  7 +++++++
 target/hppa/mem_helper.c          | 32 +++++++++++++++++++++++++++-----
 target/i386/cpu.c                 |  9 +++------
 target/i386/kvm/kvm.c             |  3 +--
 target/loongarch/cpu_helper.c     | 15 ++++++++++++---
 target/loongarch/tcg/tlb_helper.c | 12 ++++++++----
 38 files changed, 91 insertions(+), 82 deletions(-)