From: Anton Johansson via <qemu-devel@nongnu.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Brian Cain" <brian.cain@oss.qualcomm.com>
Subject: [PATCH v2 0/7] single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS
Date: Mon, 15 Dec 2025 20:42:49 +0100 [thread overview]
Message-ID: <20251215-phys_addr-v2-0-633aa1d922cd@rev.ng> (raw)
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/8f0db5c1-f20b-4b7a-8d6c-76ce7ec7b4e0@linaro.org/
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
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/20251209-phys_addr-v1-0-c387f3e72d77@rev.ng
---
Anton Johansson (7):
target/alpha: Introduce alpha_phys_addr_space_bits()
target/hppa: Define PA[20|1X] physical address space size
target/i386: Drop physical address range checks
target/loongarch: Introduce loongarch_palen_mask()
hw/loongarch: Use loongarch_palen_mask()
hw/riscv: Fix IOMMU PAS capability to 56 bits
Drop TARGET_PHYS_ADDR_SPACE_BITS
include/exec/cpu-defs.h | 3 ---
include/exec/poison.h | 2 --
include/hw/loongarch/boot.h | 3 ++-
linux-user/alpha/target_proc.h | 23 ++++++++++++++++++++++-
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 | 2 --
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/openrisc/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/loongarch/boot.c | 28 ++++++++++++++++------------
hw/loongarch/virt.c | 5 ++++-
hw/riscv/riscv-iommu.c | 12 +++++++++---
target/hppa/mem_helper.c | 23 ++++++++++++++++++-----
target/i386/cpu.c | 9 +++------
target/i386/kvm/kvm.c | 3 +--
target/loongarch/cpu_helper.c | 14 +++++++++++---
target/loongarch/tcg/tlb_helper.c | 12 ++++++++----
34 files changed, 95 insertions(+), 80 deletions(-)
next reply other threads:[~2025-12-15 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 19:42 Anton Johansson via [this message]
2025-12-15 19:42 ` [PATCH v2 1/7] target/alpha: Introduce alpha_phys_addr_space_bits() Anton Johansson via
2025-12-15 19:42 ` [PATCH v2 2/7] target/hppa: Define PA[20|1X] physical address space size Anton Johansson via
2025-12-15 19:42 ` [PATCH v2 3/7] target/i386: Drop physical address range checks Anton Johansson via
2025-12-15 19:42 ` [PATCH v2 4/7] target/loongarch: Introduce loongarch_palen_mask() Anton Johansson via
2025-12-15 19:42 ` [PATCH v2 5/7] hw/loongarch: Use loongarch_palen_mask() Anton Johansson via
2025-12-15 19:42 ` [PATCH v2 6/7] hw/riscv: Fix IOMMU PAS capability to 56 bits Anton Johansson via
2025-12-15 19:42 ` [PATCH v2 7/7] Drop TARGET_PHYS_ADDR_SPACE_BITS Anton Johansson via
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=20251215-phys_addr-v2-0-633aa1d922cd@rev.ng \
--to=qemu-devel@nongnu.org \
--cc=anjo@rev.ng \
--cc=brian.cain@oss.qualcomm.com \
--cc=philmd@linaro.org \
--cc=richard.henderson@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).