Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA089606A321 for ; Thu, 12 Nov 2026 18:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=DwfR40Vu; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jert95dr Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xRZGM-0002Xh-Sy; Thu, 12 Nov 2026 13:11:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xRZFn-0001Ue-5K for qemu-devel@nongnu.org; Thu, 12 Nov 2026 13:10:35 -0500 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xRZFl-0000Ue-7I for qemu-devel@nongnu.org; Thu, 12 Nov 2026 13:10:30 -0500 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6ACFZM1c2293145 for ; Thu, 12 Nov 2026 18:10:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= r2LHAnz735b9grJzoDqdjvy4mzlANJ9D9A7HWcMx+po=; b=DwfR40VuGjkTQE/5 2VUYYN0WeRxJmL+C5RrcAZsUjAap8KAWRdU/qBIE5wljDI4XhcdXWJJpjL5Mh9OM ORvbrm0oRPyLWiQJ3eE02nRZnoGU8DwCUmoKYbzVmSmQWKNCtXhD9+FNLPvqru/X H7b9LwAUeBolUvuTNUJ8JorCfu2D3iiAGR+oFF4sCssfghNHOXlP61jcn/ZhW8GN lJYoHbTZ/buvSYZ8xwzBEXbdE2WTd2GMrbmjuKe5lu0UH3YXrvnrgbo0TKrPi4F5 Ca5bWvJKRWT5myg+nFS8+ONcWmy7OcvhvyalOpDf/WjJtWPdkZkmpx1ggtqTX89w qenFQA== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hwbs01r9v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 12 Nov 2026 18:10:28 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-5383d650f2dso89578481cf.0 for ; Thu, 12 Nov 2026 10:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794507028; x=1795111828; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=r2LHAnz735b9grJzoDqdjvy4mzlANJ9D9A7HWcMx+po=; b=jert95dr4ulCadmZi6zkUXbzyBNLAGuLbHh+I1AL+ppccoHB1r61AuA/BmfQFOHtmT n35dGO7rfhDSTCYjWFmfCtYVuHOvSW3gKh0+WI5GWUqJs1v9ENGZ1MVvJZjRGGn93y4M 4qeiSFAGDCRIaa6DUGkr5CAoFc5Qo5menmIfj7Y0OGHnouirRVq3UikEAyDx/SAGxHqN hSmTJB10CJYZXwO8GoUrgwYb3sJiJ/+M5EOrKGnJClbNPMHj91GiSQhKqmO5swTJDffy ZVLlVrZvpFP26S4PfQWhzLFmBt9cptA4YU7opuJKlc7IfHmXWqNAzKSiXApAowIA/Uxz HuyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794507028; x=1795111828; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=r2LHAnz735b9grJzoDqdjvy4mzlANJ9D9A7HWcMx+po=; b=Sio2qSWeXBHxvxiS5JMIYI171WdirjBS0jZhORnQPFBPydvW+7YYAlvPq2Qd4lNr/J +p/ylTWlwtQYDTag6l9rJIzpr1pxIHLTXEzqWBd13m/vrnSswGSDxnHFNeXhCfJxVPvD 1XnbjbWY0LnVvN5FdAAO0fuOlsDaO8fYKB7xz5KloD0QMzexWD01O+Ld/FssWPvf1oEH ZnivveMyo1CtfKahRpOfYlHOzecf2XEmIqyk+JnjOLe8/La7M5kuBKgX0vo0xtyJcAWl Nb4Rq1254qX2FPWcQB8lypvI0Ep1IOUgI/kR/VfAKEGWt2FEQ1jgfabpWQQdPeUZ78tO FiRw== X-Gm-Message-State: APuU4Z/igYHjSoQ5nOjtg1Zziecneb3GWLx7TLLxuvpqLiYR1TOeEbD3 kN9cPvQwcIPa4Q3LgpY7B6iQKRVeBOblspbj7Kp8yZq/Szr6QdlU74CQ1bPJqnnk6E3hJQxzRkC AJ1/PDR5QHJYUa/aIPvpOfsgjd5QT1Gah1YF2OXBe31DhLbCjwGzpArcZ7AVydE4Qswdp X-Gm-Gg: AYBFou1DkRt8/dDzek/HymgI5sYJ8plDcpIrVi7wQFzO1gAn2STEdhk976sBTdR1jSv d0Zgpz6zw2Kw7AAW08LnovQMP10yzvZMpXvEmgbM7f7kJuS6HSuCzFonfNXQQXZEDTYeoSn/CPo IU06VO2kc2D3ij2/cW+pVi5qHqMNWljNYZLytREi29qGYnz0z2/S5CqX6DhUnY6Q8bXgDuourOC xHD9XF4xuqMpfwumxLE+uxdZEjIVmLKmyMYGV6RJMqr2rWh3WYI9SAOhAo1GPruzMq64J1oDJin NRyHQLdTdE6f4q4wZ1tRVF8d0+2FH68e0whbvsUdEo2nliE65CXcnLVcRWoZIlRgefykCUFctf9 Xc+u+nIxLgz2AeEi9FfvTrFeR0iUKNsWFZbE3CF2V+oOwk8z6xK5xgSXnB24r9HTkIwnctHeRoi cpa9fKYpDp6hCrgw== X-Received: by 2002:a05:622a:4d43:b0:535:13c1:ce94 with SMTP id d75a77b69052e-55ac7b5cd28mr2935271cf.38.1794507027230; Thu, 12 Nov 2026 10:10:27 -0800 (PST) X-Received: by 2002:a05:622a:4d43:b0:535:13c1:ce94 with SMTP id d75a77b69052e-55ac7b5cd28mr2934571cf.38.1794507026455; Thu, 12 Nov 2026 10:10:26 -0800 (PST) Received: from localhost.localdomain (pmd666.hd.free.fr. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb4e29d24dsm89296145e9.11.2026.11.12.10.10.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 12 Nov 2026 10:10:25 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , devel@lists.libvirt.org, Richard Henderson , Paolo Bonzini , Laurent Vivier , Helge Deller , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Anton Johansson , Pierrick Bouvier , Peter Maydell , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , qemu-arm@nongnu.org Subject: [PATCH-for-12.0 v2 11/12] linux-user/aarch64: Unify both endianness under qemu-aarch64 Date: Thu, 12 Nov 2026 19:08:57 +0100 Message-ID: <20261112180859.85380-12-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261112180859.85380-1-philmd@oss.qualcomm.com> References: <20261112180859.85380-1-philmd@oss.qualcomm.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTEyMDA3MiBTYWx0ZWRfX3G5fyd03CTYG ijx2MvZn15JbSSifApEW9HxpObde5nHmNuxTkDiStrdJb5d9j2GhdjkmcqWRha+etMfzeemK7kc oOJHVYRmJU81fAwpyRUtid/hIogAHRCMgSbDS5mcje+YnfN5wNw4b6KR8y3rqlBHZRqmtTLhN0y mu2fIwo22BuCgNDlQyultv0JXf74zjmEsvmlEy/ixfPx6aLkfwo3cwAvC/75jyv4PjwzsNK/c6B 84AaseId4Uqsyn13mtK6O5I1pwE8d0vFNOooO/wFENzqmXBGN6PXFDxOtxPKq/f0LUAdiCDG5XH ID66qrMbW/DQ4rIEuxXYAxpuvsYchDpWfTHDz+qjXSZDAR4/n2RJoEbXU+p0+MAkWc0JuWCJYYl OTUsBZvMx9Fw5dsdk0JqxiavpsJKN9Cfm/EtBLYYi7EAujySY4DRurhh7+ZNCfrFnnpYNNETb2W d6Zv6Ri3cNeOwNjPTlg== X-Authority-Analysis: v=2.4 cv=AsF7T+9P c=1 sm=1 tr=0 ts=6af60114 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=JmjU81yCxh27biOgx0QA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTEyMDA3MiBTYWx0ZWRfXyG9y+ffCD8jd XmzJcTI0Un0n2FNR1B1GpUapbLxPhNs3FbJNmZcj+HHi7rSNC5AvTVKs+ri2/hoW55+Mszxgq29 l9WhGj88+u2DtwYwAbAyOXhNvskRKB0= X-Proofpoint-GUID: PmGc_w4aumdqsjS82nA8qKJFvr6CrLvd X-Proofpoint-ORIG-GUID: PmGc_w4aumdqsjS82nA8qKJFvr6CrLvd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-12_02,2026-11-11_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 phishscore=0 impostorscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611120072 Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Enable runtime byte-order selection for aarch64-linux-user and retain qemu-aarch64_be as a compatibility symlink. Deprecate the symlink since 12.0 and recommend qemu-aarch64 for both ELF byte orders. Remove the separate aarch64_be-linux-user build target and obsolete CI exclusions. Run the existing big-endian hello test through qemu-aarch64 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é --- docs/about/deprecated.rst | 13 +++++++++++++ docs/user/main.rst | 8 ++++++++ configure | 9 ++++++++- configs/targets/aarch64-linux-user.mak | 2 ++ configs/targets/aarch64_be-linux-user.mak | 10 ---------- .gitlab-ci.d/buildtest.yml | 2 +- .gitlab-ci.d/crossbuild-template.yml | 4 ++-- tests/tcg/aarch64_be/meson.build | 4 ++-- 8 files changed, 36 insertions(+), 16 deletions(-) delete mode 100644 configs/targets/aarch64_be-linux-user.mak diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 0891bbc44ded..715a72d8b117 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -438,6 +438,19 @@ It was implemented as a no-op instruction in TCG up to QEMU 9.0, but only with ``-cpu max`` (which does not guarantee migration compatibility across versions). +linux-user mode executables +--------------------------- + +.. _deprecated-qemu-aarch64-be: + +``qemu-aarch64_be`` executable name (since 12.0) +'''''''''''''''''''''''''''''''''''''''''''''''' + +The ``qemu-aarch64_be`` compatibility symlink is deprecated. +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. + linux-user mode CPUs -------------------- diff --git a/docs/user/main.rst b/docs/user/main.rst index a8ddf9142495..c9b4204dcf9d 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -65,6 +65,14 @@ emulator. Linux User space emulator ------------------------- +For AArch64, ``qemu-aarch64`` runs both little- and big-endian Linux ELF +executables, selecting the byte order from the ELF header. ``qemu-aarch64_be`` +is a :ref:`deprecated compatibility symlink ` +to the same emulator; its name does not override the ELF byte order. +Build both names with ``--target-list=aarch64-linux-user``; the separate +``aarch64_be-linux-user`` build target is no longer supported. +For bFLT, which has no byte-order marker, QEMU uses the little-endian default. + Command line options ~~~~~~~~~~~~~~~~~~~~ diff --git a/configure b/configure index af14a9c23efd..821a887a31c1 100755 --- a/configure +++ b/configure @@ -1107,7 +1107,14 @@ else *" $target "*) ;; *) - error_exit "Unknown target name '$target'" + case "$target" in + aarch64_be-linux-user) + error_exit "Target '$target' is no longer supported; use 'aarch64-linux-user' instead" + ;; + *) + error_exit "Unknown target name '$target'" + ;; + esac ;; esac done diff --git a/configs/targets/aarch64-linux-user.mak b/configs/targets/aarch64-linux-user.mak index ddfacc092ddf..efe372021ce8 100644 --- a/configs/targets/aarch64-linux-user.mak +++ b/configs/targets/aarch64-linux-user.mak @@ -1,5 +1,7 @@ TARGET_ARCH=aarch64 TARGET_BASE_ARCH=arm +TARGET_RUNTIME_ENDIAN=y +TARGET_USER_ALIASES=aarch64_be TARGET_XML_FILES= aarch64-core.xml aarch64-fpu.xml aarch64-pauth.xml aarch64-mte.xml aarch64-sme2.xml TARGET_HAS_BFLT=y CONFIG_SEMIHOSTING=y diff --git a/configs/targets/aarch64_be-linux-user.mak b/configs/targets/aarch64_be-linux-user.mak deleted file mode 100644 index 83209fa2ae54..000000000000 --- a/configs/targets/aarch64_be-linux-user.mak +++ /dev/null @@ -1,10 +0,0 @@ -TARGET_ARCH=aarch64 -TARGET_BASE_ARCH=arm -TARGET_BIG_ENDIAN=y -TARGET_XML_FILES= aarch64-core.xml aarch64-fpu.xml aarch64-pauth.xml aarch64-mte.xml aarch64-sme2.xml -TARGET_HAS_BFLT=y -CONFIG_SEMIHOSTING=y -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y -TARGET_SYSTBL_ABI=common,64,renameat,rlimit,memfd_secret -TARGET_SYSTBL=syscall_64.tbl -TARGET_LONG_BITS=64 diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index b1e95395d0c3..a603c93cb799 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -451,7 +451,7 @@ clang-user: variables: IMAGE: debian-all-test-cross CONFIGURE_ARGS: --cc=clang --cxx=clang++ --disable-system --enable-ubsan - --target-list-exclude=alpha-linux-user,microblazeel-linux-user,aarch64_be-linux-user,i386-linux-user,m68k-linux-user,mipsn32el-linux-user,xtensaeb-linux-user + --target-list-exclude=alpha-linux-user,microblazeel-linux-user,i386-linux-user,m68k-linux-user,mipsn32el-linux-user,xtensaeb-linux-user --extra-cflags=-fno-sanitize-recover=undefined MAKE_CHECK_ARGS: check-unit check-tcg diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild-template.yml index 94423814a751..32c11f4895b5 100644 --- a/.gitlab-ci.d/crossbuild-template.yml +++ b/.gitlab-ci.d/crossbuild-template.yml @@ -70,8 +70,8 @@ - cd build - section_start configure "Running configure" - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS - --disable-system --target-list-exclude="aarch64_be-linux-user - alpha-linux-user m68k-linux-user microblazeel-linux-user + --disable-system --target-list-exclude="alpha-linux-user + m68k-linux-user microblazeel-linux-user or1k-linux-user ppc-linux-user sparc-linux-user xtensa-linux-user $CROSS_SKIP_TARGETS" - section_end configure diff --git a/tests/tcg/aarch64_be/meson.build b/tests/tcg/aarch64_be/meson.build index c1873cd5606c..08d29a94e702 100644 --- a/tests/tcg/aarch64_be/meson.build +++ b/tests/tcg/aarch64_be/meson.build @@ -6,7 +6,7 @@ tests += { 'hello.c': {'cflags': ['-mbig-endian', '-ffreestanding', '-nostdlib']}, } -if 'qemu-aarch64_be' in emulators +if 'qemu-aarch64' in emulators tcg_tests += { 'aarch64_be-linux-user': { 'cc': 'aarch64-linux-gnu-gcc', @@ -14,7 +14,7 @@ if 'qemu-aarch64_be' in emulators 'cc_dockerfile': 'debian-all-test-cross', 'folder': 'aarch64_be', 'gdb_arch': 'aarch64_be', - 'qemu': emulators['qemu-aarch64_be'], + 'qemu': emulators['qemu-aarch64'], 'tests': tests, } } -- 2.55.0