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

Philippe Mathieu-Daudé posted 3 patches 1 month, 2 weeks ago
Maintainers: Laurent Vivier <laurent@vivier.eu>, Brian Cain <brian.cain@oss.qualcomm.com>
[PATCH v3 3/3] configs/targets: Forbid Hexagon to use legacy native endianness API
Posted by Philippe Mathieu-Daudé 1 month, 2 weeks ago
The qemu-hexagon 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.

Preliminary commits allowing this final change:

  - beb38fda0f0 target/hexagon: Replace MO_TE -> MO_LE
  - fdcb7483ae0 target/hexagon: Explode MO_TExx -> MO_TE | MO_xx

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

diff --git a/configs/targets/hexagon-linux-user.mak b/configs/targets/hexagon-linux-user.mak
index aec1a04d1b4..6763e2111d5 100644
--- a/configs/targets/hexagon-linux-user.mak
+++ b/configs/targets/hexagon-linux-user.mak
@@ -3,3 +3,4 @@ TARGET_XML_FILES=gdb-xml/hexagon-core.xml gdb-xml/hexagon-hvx.xml
 TARGET_SYSTBL=syscall.tbl
 TARGET_SYSTBL_ABI=common,32,hexagon,time32,stat64,rlimit,renameat
 TARGET_LONG_BITS=32
+TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
-- 
2.52.0


Re: [PATCH v3 3/3] configs/targets: Forbid Hexagon to use legacy native endianness API
Posted by Brian Cain 1 month ago
On Wed, Dec 24, 2025 at 10:07 AM Philippe Mathieu-Daudé <philmd@linaro.org>
wrote:

> The qemu-hexagon 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.
>
> Preliminary commits allowing this final change:
>
>   - beb38fda0f0 target/hexagon: Replace MO_TE -> MO_LE
>   - fdcb7483ae0 target/hexagon: Explode MO_TExx -> MO_TE | MO_xx
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>

Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com>

 configs/targets/hexagon-linux-user.mak | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configs/targets/hexagon-linux-user.mak
> b/configs/targets/hexagon-linux-user.mak
> index aec1a04d1b4..6763e2111d5 100644
> --- a/configs/targets/hexagon-linux-user.mak
> +++ b/configs/targets/hexagon-linux-user.mak
> @@ -3,3 +3,4 @@ TARGET_XML_FILES=gdb-xml/hexagon-core.xml
> gdb-xml/hexagon-hvx.xml
>  TARGET_SYSTBL=syscall.tbl
>  TARGET_SYSTBL_ABI=common,32,hexagon,time32,stat64,rlimit,renameat
>  TARGET_LONG_BITS=32
> +TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
> --
> 2.52.0
>
>
Re: [PATCH v3 3/3] configs/targets: Forbid Hexagon to use legacy native endianness API
Posted by Richard Henderson 1 month ago
On 12/25/25 03:07, Philippe Mathieu-Daudé wrote:
> The qemu-hexagon 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.
> 
> Preliminary commits allowing this final change:
> 
>    - beb38fda0f0 target/hexagon: Replace MO_TE -> MO_LE
>    - fdcb7483ae0 target/hexagon: Explode MO_TExx -> MO_TE | MO_xx
> 
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   configs/targets/hexagon-linux-user.mak | 1 +
>   1 file changed, 1 insertion(+)

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

r~

Re: [PATCH v3 3/3] configs/targets: Forbid Hexagon to use legacy native endianness API
Posted by Manos Pitsidianakis 1 month, 1 week ago
On Wed, Dec 24, 2025 at 6:07 PM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> The qemu-hexagon 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.
>
> Preliminary commits allowing this final change:
>
>   - beb38fda0f0 target/hexagon: Replace MO_TE -> MO_LE
>   - fdcb7483ae0 target/hexagon: Explode MO_TExx -> MO_TE | MO_xx
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>

>  configs/targets/hexagon-linux-user.mak | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configs/targets/hexagon-linux-user.mak b/configs/targets/hexagon-linux-user.mak
> index aec1a04d1b4..6763e2111d5 100644
> --- a/configs/targets/hexagon-linux-user.mak
> +++ b/configs/targets/hexagon-linux-user.mak
> @@ -3,3 +3,4 @@ TARGET_XML_FILES=gdb-xml/hexagon-core.xml gdb-xml/hexagon-hvx.xml
>  TARGET_SYSTBL=syscall.tbl
>  TARGET_SYSTBL_ABI=common,32,hexagon,time32,stat64,rlimit,renameat
>  TARGET_LONG_BITS=32
> +TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
> --
> 2.52.0
>