Skip to contentSkip to conversation

configs/targets: Restrict the legacy ldst_phys() API on ARM / Aarch64

PATCH-for-11.0? Applied Philippe Mathieu-Daudé 2 participants 3 messages Mar 19 – Mar 20

lore
Share & tools
lore
#0 lore raw

Commit d751921cffd ("hw/arm/omap1: Remove omap_badwidth_* implementations") removed the last use of the legacy ldst_phys() API. Set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable to hide the legacy API to the ARM / Aarch64 binaries, avoiding further API uses to creep in.

---
 configs/targets/aarch64-softmmu.mak | 1 +
 configs/targets/arm-softmmu.mak     | 1 +
 2 files changed, 2 insertions(+)
configs/targets/aarch64-softmmu.mak +1 -0
index 9a20187e2c1..d34aead41c4 100644
@@ -5,3 +5,4 @@ TARGET_XML_FILES= aarch64-core.xml aarch64-fpu.xml arm-core.xml arm-vfp.xml arm-
 # needed by boot.c
 TARGET_NEED_FDT=y
 TARGET_LONG_BITS=64
+TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
configs/targets/arm-softmmu.mak +1 -0
index 35af7da79f2..b235e34a380 100644
@@ -3,3 +3,4 @@ TARGET_XML_FILES= arm-core.xml arm-vfp.xml arm-vfp3.xml arm-vfp-sysregs.xml arm-
 # needed by boot.c
 TARGET_NEED_FDT=y
 TARGET_LONG_BITS=32
+TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
Signature · 1 line
2.53.0
#1 lore raw
Quoted 7 lines · Philippe Mathieu-Daudé

Commit d751921cffd ("hw/arm/omap1: Remove omap_badwidth_* implementations") removed the last use of the legacy ldst_phys() API. Set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable to hide the legacy API to the ARM / Aarch64 binaries, avoiding further API uses to creep in.

Quoted 5 lines
---
 configs/targets/aarch64-softmmu.mak | 1 +
 configs/targets/arm-softmmu.mak     | 1 +
 2 files changed, 2 insertions(+)

We might as well take this now, it's pretty safe.

Applied to target-arm.next, thanks.

-- PMM

#2 lore raw
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Philippe Mathieu-Daudé

Commit d751921cffd ("hw/arm/omap1: Remove omap_badwidth_* implementations") removed the last use of the legacy ldst_phys() API. Set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable to hide the legacy API to the ARM / Aarch64 binaries, avoiding further API uses to creep in.

Quoted 7 lines
Quoted 5 lines
---
  configs/targets/aarch64-softmmu.mak | 1 +
  configs/targets/arm-softmmu.mak     | 1 +
  2 files changed, 2 insertions(+)

We might as well take this now, it's pretty safe.

Thank you, appreciated!

Quoted 3 lines

Applied to target-arm.next, thanks.

-- PMM