Enable runtime byte-order selection for arm-linux-user
and retain qemu-armeb as a compatibility symlink.
Deprecate the symlink since 12.0 and recommend qemu-arm
for both ELF byte orders.
Remove the separate armeb-linux-user build target and
obsolete CI exclusions.

Run the existing big-endian hello test through qemu-arm
while retaining its big-endian fixture toolchain. Document
that executable name compatibility does not preserve the
removed target-list spelling.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
 docs/about/deprecated.rst            | 10 ++++++++++
 docs/user/main.rst                   | 10 ++++++++--
 configure                            |  3 +++
 configs/targets/arm-linux-user.mak   |  2 ++
 configs/targets/armeb-linux-user.mak |  9 ---------
 5 files changed, 23 insertions(+), 11 deletions(-)
 delete mode 100644 configs/targets/armeb-linux-user.mak

diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index 715a72d8b117..e85c9efdb4b5 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -451,6 +451,16 @@ Use ``qemu-aarch64`` instead for both little- and 
big-endian
 Linux ELF executables. The emulator selects the endianness from
 the ELF header, regardless of the executable name used to invoke it.
 
+.. _deprecated-qemu-armeb:
+
+``qemu-armeb`` executable name (since 12.0)
+'''''''''''''''''''''''''''''''''''''''''''
+
+The ``qemu-armeb`` compatibility symlink is deprecated.
+Use ``qemu-arm`` instead for both little- and big-endian Linux
+ELF executables. The emulator selects the endianness from the
+ELF header, regardless of the executable name used to invoke it.
+
 linux-user mode CPUs
 --------------------
 
diff --git a/docs/user/main.rst b/docs/user/main.rst
index c9b4204dcf9d..2e01233a9cd0 100644
--- a/docs/user/main.rst
+++ b/docs/user/main.rst
@@ -152,11 +152,17 @@ Other binaries
 
 -  user mode (Arm)
 
-   * ``qemu-armeb`` TODO.
+   ``qemu-arm`` runs both little- and big-endian Linux ELF executables,
+   selecting the byte order from the ELF header. ``qemu-armeb`` is a
+   :ref:`deprecated compatibility symlink <deprecated-qemu-armeb>` to the
+   same emulator; its name does not override the ELF byte order. Build both
+   names with ``--target-list=arm-linux-user``; the separate
+   ``armeb-linux-user`` build target is no longer supported.
 
    * ``qemu-arm`` is also capable of running Arm \"Angel\" semihosted ELF
      binaries (as implemented by the arm-elf and arm-eabi Newlib/GDB
-     configurations), and arm-uclinux bFLT format binaries.
+     configurations), and arm-uclinux bFLT format binaries. bFLT has no
+     byte-order marker and uses the little-endian default.
 
 -  user mode (ColdFire)
 
diff --git a/configure b/configure
index 821a887a31c1..14b484908919 100755
--- a/configure
+++ b/configure
@@ -1111,6 +1111,9 @@ else
                     aarch64_be-linux-user)
                         error_exit "Target '$target' is no longer supported; 
use 'aarch64-linux-user' instead"
                         ;;
+                    armeb-linux-user)
+                        error_exit "Target '$target' is no longer supported; 
use 'arm-linux-user' instead"
+                        ;;
                     *)
                         error_exit "Unknown target name '$target'"
                         ;;
diff --git a/configs/targets/arm-linux-user.mak 
b/configs/targets/arm-linux-user.mak
index 3793782d067b..e3203c848182 100644
--- a/configs/targets/arm-linux-user.mak
+++ b/configs/targets/arm-linux-user.mak
@@ -1,6 +1,8 @@
 TARGET_ARCH=arm
 TARGET_SYSTBL_ABI=common,oabi
 TARGET_SYSTBL=syscall.tbl
+TARGET_RUNTIME_ENDIAN=y
+TARGET_USER_ALIASES=armeb
 TARGET_XML_FILES= arm-core.xml arm-vfp.xml arm-vfp3.xml arm-vfp-sysregs.xml 
arm-neon.xml arm-m-profile.xml arm-m-profile-mve.xml
 TARGET_HAS_BFLT=y
 CONFIG_SEMIHOSTING=y
diff --git a/configs/targets/armeb-linux-user.mak 
b/configs/targets/armeb-linux-user.mak
deleted file mode 100644
index 536bc95af71c..000000000000
--- a/configs/targets/armeb-linux-user.mak
+++ /dev/null
@@ -1,9 +0,0 @@
-TARGET_ARCH=arm
-TARGET_SYSTBL_ABI=common,oabi
-TARGET_SYSTBL=syscall.tbl
-TARGET_BIG_ENDIAN=y
-TARGET_XML_FILES= arm-core.xml arm-vfp.xml arm-vfp3.xml arm-vfp-sysregs.xml 
arm-neon.xml arm-m-profile.xml arm-m-profile-mve.xml
-TARGET_HAS_BFLT=y
-CONFIG_SEMIHOSTING=y
-CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
-TARGET_LONG_BITS=32
-- 
2.55.0

Reply via email to