[PATCH 2/2] configs/targets: Restrict the legacy ldst_phys() API on LoongArch64

Philippe Mathieu-Daudé posted 2 patches 2 weeks, 3 days ago
Maintainers: Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>
[PATCH 2/2] configs/targets: Restrict the legacy ldst_phys() API on LoongArch64
Posted by Philippe Mathieu-Daudé 2 weeks, 3 days ago
The LoongArch64 target doesn't use the legacy ldst_phys() API
anymore. Set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable
to hide the legacy API to the qemu-system-loongarch64 binary,
avoiding further API uses to creep in.

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

diff --git a/configs/targets/loongarch64-softmmu.mak b/configs/targets/loongarch64-softmmu.mak
index 476407f9413..a425b3dbaae 100644
--- a/configs/targets/loongarch64-softmmu.mak
+++ b/configs/targets/loongarch64-softmmu.mak
@@ -6,3 +6,4 @@ TARGET_XML_FILES= loongarch-base32.xml loongarch-base64.xml loongarch-fpu.xml lo
 TARGET_NEED_FDT=y
 TARGET_LONG_BITS=64
 TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
+TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
-- 
2.53.0


Re: [PATCH 2/2] configs/targets: Restrict the legacy ldst_phys() API on LoongArch64
Posted by Anton Johansson via qemu development 2 weeks, 3 days ago
On 19/03/26, Philippe Mathieu-Daudé wrote:
> The LoongArch64 target doesn't use the legacy ldst_phys() API
> anymore. Set the TARGET_NOT_USING_LEGACY_LDST_PHYS_API variable
> to hide the legacy API to the qemu-system-loongarch64 binary,
> avoiding further API uses to creep in.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>  configs/targets/loongarch64-softmmu.mak | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/targets/loongarch64-softmmu.mak b/configs/targets/loongarch64-softmmu.mak
> index 476407f9413..a425b3dbaae 100644
> --- a/configs/targets/loongarch64-softmmu.mak
> +++ b/configs/targets/loongarch64-softmmu.mak
> @@ -6,3 +6,4 @@ TARGET_XML_FILES= loongarch-base32.xml loongarch-base64.xml loongarch-fpu.xml lo
>  TARGET_NEED_FDT=y
>  TARGET_LONG_BITS=64
>  TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
> +TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
> -- 
> 2.53.0
> 
> 

Reviewed-by: Anton Johansson <anjo@rev.ng>