[PATCH 2/2] configs/targets: Restrict legacy ldst_phys() API on 32-bit SPARC target

Philippe Mathieu-Daudé posted 2 patches 2 days, 7 hours ago
[PATCH 2/2] configs/targets: Restrict legacy ldst_phys() API on 32-bit SPARC target
Posted by Philippe Mathieu-Daudé 2 days, 7 hours ago
Since we removed the last legacy uses of the legacy ldst_phys()
API, set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable to
hide the legacy API to the qemu-system-sparc binary, avoiding
further API uses to creep in.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 configs/targets/sparc-softmmu.mak | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/targets/sparc-softmmu.mak b/configs/targets/sparc-softmmu.mak
index 272fd46f6db..c4c38946d54 100644
--- a/configs/targets/sparc-softmmu.mak
+++ b/configs/targets/sparc-softmmu.mak
@@ -1,4 +1,5 @@
 TARGET_ARCH=sparc
 TARGET_BIG_ENDIAN=y
 TARGET_LONG_BITS=32
+TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
 TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
-- 
2.52.0


Re: [PATCH 2/2] configs/targets: Restrict legacy ldst_phys() API on 32-bit SPARC target
Posted by Richard Henderson 2 days, 4 hours ago
On 2/5/26 07:53, Philippe Mathieu-Daudé wrote:
> Since we removed the last legacy uses of the legacy ldst_phys()
> API, set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable to
> hide the legacy API to the qemu-system-sparc binary, avoiding
> further API uses to creep in.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   configs/targets/sparc-softmmu.mak | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/configs/targets/sparc-softmmu.mak b/configs/targets/sparc-softmmu.mak
> index 272fd46f6db..c4c38946d54 100644
> --- a/configs/targets/sparc-softmmu.mak
> +++ b/configs/targets/sparc-softmmu.mak
> @@ -1,4 +1,5 @@
>   TARGET_ARCH=sparc
>   TARGET_BIG_ENDIAN=y
>   TARGET_LONG_BITS=32
> +TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
>   TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~