[PATCH 3/3] configs/targets: Forbid AVR to use legacy native endianness API

Philippe Mathieu-Daudé posted 3 patches 1 month, 3 weeks ago
[PATCH 3/3] configs/targets: Forbid AVR to use legacy native endianness API
Posted by Philippe Mathieu-Daudé 1 month, 3 weeks ago
The qemu-system-avr binary is buildable without a single use
of the legacy "native endian" API. Unset the transitional
TARGET_USE_LEGACY_NATIVE_ENDIAN_API definition to forbid
further uses of the legacy API.

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

diff --git a/configs/targets/avr-softmmu.mak b/configs/targets/avr-softmmu.mak
index 1aba1ccf13b..b6157fc465d 100644
--- a/configs/targets/avr-softmmu.mak
+++ b/configs/targets/avr-softmmu.mak
@@ -1,4 +1,3 @@
 TARGET_ARCH=avr
 TARGET_XML_FILES= gdb-xml/avr-cpu.xml
-TARGET_USE_LEGACY_NATIVE_ENDIAN_API=y
 TARGET_LONG_BITS=32
-- 
2.52.0


Re: [PATCH 3/3] configs/targets: Forbid AVR to use legacy native endianness API
Posted by Richard Henderson 1 month, 1 week ago
On 12/19/25 08:30, Philippe Mathieu-Daudé wrote:
> The qemu-system-avr binary is buildable without a single use
> of the legacy "native endian" API. Unset the transitional
> TARGET_USE_LEGACY_NATIVE_ENDIAN_API definition to forbid
> further uses of the legacy API.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   configs/targets/avr-softmmu.mak | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/configs/targets/avr-softmmu.mak b/configs/targets/avr-softmmu.mak
> index 1aba1ccf13b..b6157fc465d 100644
> --- a/configs/targets/avr-softmmu.mak
> +++ b/configs/targets/avr-softmmu.mak
> @@ -1,4 +1,3 @@
>   TARGET_ARCH=avr
>   TARGET_XML_FILES= gdb-xml/avr-cpu.xml
> -TARGET_USE_LEGACY_NATIVE_ENDIAN_API=y
>   TARGET_LONG_BITS=32

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

r~