From nobody Sun Apr 28 23:00:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513714990525236.7548440864066; Tue, 19 Dec 2017 12:23:10 -0800 (PST) Received: from localhost ([::1]:35850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROPj-0004jJ-Jh for importer@patchew.org; Tue, 19 Dec 2017 15:22:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROMR-00026S-2B for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eROMQ-0008Q0-4i for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:35 -0500 Received: from heinz.dinsnail.net ([2a01:238:43b4:3200:9392:5dcc:2f0e:a960]:47094) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eROMP-0008PB-RE for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:34 -0500 Received: from heinz.dinsnail.net ([IPv6:::1]) by heinz.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKIrqr012580; Tue, 19 Dec 2017 21:18:53 +0100 Received: from eldalonde.UUCP (uucp@localhost) by heinz.dinsnail.net (8.14.9/8.14.9/Submit) with bsmtp id vBJKIrdT012572; Tue, 19 Dec 2017 21:18:53 +0100 Received: from rivendell.weiser.dinsnail.net (rivendell.weiser.dinsnail.net [IPv6:fdbc:1bbf:5341::1:8]) by eldalonde.weiser.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKGP08010876; Tue, 19 Dec 2017 21:16:25 +0100 Received: (from michael@localhost) by rivendell.weiser.dinsnail.net (8.14.9/8.14.3/Submit) id vBJKGPtA007444; Tue, 19 Dec 2017 21:16:25 +0100 From: Michael Weiser To: qemu-devel@nongnu.org Date: Tue, 19 Dec 2017 21:16:09 +0100 Message-Id: <20171219201613.7399-2-michael.weiser@gmx.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171219201613.7399-1-michael.weiser@gmx.de> References: <20171219201613.7399-1-michael.weiser@gmx.de> X-dinsnail-net-MailScanner-Information: Please contact the ISP for more information X-dinsnail-net-MailScanner-ID: vBJKIrqr012580 X-dinsnail-net-MailScanner: Found to be clean X-dinsnail-net-MailScanner-From: michael@rivendell.weiser.dinsnail.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:238:43b4:3200:9392:5dcc:2f0e:a960 Subject: [Qemu-devel] [PATCH v2 1/5] linux-user: Add support for big-endian aarch64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Michael Weiser , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Enable big-endian mode for data accesses on aarch64 for big-endian linux user mode. Activate it for all execution levels as documented by ARM: Set the SCTLR EE bit for ELs 1 through 3. Additionally set bit E0E in EL1 to enable it in EL0 as well. Signed-off-by: Michael Weiser --- linux-user/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-user/main.c b/linux-user/main.c index 2fd2a143ed..7ea863260d 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -4611,6 +4611,12 @@ int main(int argc, char **argv, char **envp) } env->pc =3D regs->pc; env->xregs[31] =3D regs->sp; +#ifdef TARGET_WORDS_BIGENDIAN + env->cp15.sctlr_el[1] |=3D SCTLR_E0E; + for (i =3D 1; i < 4; ++i) { + env->cp15.sctlr_el[i] |=3D SCTLR_EE; + } +#endif } #elif defined(TARGET_ARM) { --=20 2.15.1 From nobody Sun Apr 28 23:00:36 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513715102017558.6733382045575; Tue, 19 Dec 2017 12:25:02 -0800 (PST) Received: from localhost ([::1]:35890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRORM-0005jQ-TB for importer@patchew.org; Tue, 19 Dec 2017 15:24:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROMc-0002FI-Hh for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eROMb-00005Q-OG for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:46 -0500 Received: from heinz.dinsnail.net ([2a01:238:43b4:3200:9392:5dcc:2f0e:a960]:47118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eROMb-0008W9-De for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:45 -0500 Received: from heinz.dinsnail.net ([IPv6:::1]) by heinz.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKIrOk012582; Tue, 19 Dec 2017 21:18:54 +0100 Received: from eldalonde.UUCP (uucp@localhost) by heinz.dinsnail.net (8.14.9/8.14.9/Submit) with bsmtp id vBJKIrM3012581; Tue, 19 Dec 2017 21:18:53 +0100 Received: from rivendell.weiser.dinsnail.net (rivendell.weiser.dinsnail.net [IPv6:fdbc:1bbf:5341::1:8]) by eldalonde.weiser.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKGPLi010880; Tue, 19 Dec 2017 21:16:25 +0100 Received: (from michael@localhost) by rivendell.weiser.dinsnail.net (8.14.9/8.14.3/Submit) id vBJKGPmF007445; Tue, 19 Dec 2017 21:16:25 +0100 From: Michael Weiser To: qemu-devel@nongnu.org Date: Tue, 19 Dec 2017 21:16:10 +0100 Message-Id: <20171219201613.7399-3-michael.weiser@gmx.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171219201613.7399-1-michael.weiser@gmx.de> References: <20171219201613.7399-1-michael.weiser@gmx.de> X-dinsnail-net-MailScanner-Information: Please contact the ISP for more information X-dinsnail-net-MailScanner-ID: vBJKIrOk012582 X-dinsnail-net-MailScanner: Found to be clean X-dinsnail-net-MailScanner-From: michael@rivendell.weiser.dinsnail.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:238:43b4:3200:9392:5dcc:2f0e:a960 Subject: [Qemu-devel] [PATCH v2 2/5] linux-user: Add separate aarch64_be uname X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Michael Weiser , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Make big-endian aarch64 systems identify as aarch64_be as expected by big-endian userland and toolchains. Signed-off-by: Michael Weiser --- linux-user/aarch64/target_syscall.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-user/aarch64/target_syscall.h b/linux-user/aarch64/targe= t_syscall.h index 1b62953eeb..604ab99b14 100644 --- a/linux-user/aarch64/target_syscall.h +++ b/linux-user/aarch64/target_syscall.h @@ -8,7 +8,11 @@ struct target_pt_regs { uint64_t pstate; }; =20 +#if defined(TARGET_WORDS_BIGENDIAN) +#define UNAME_MACHINE "aarch64_be" +#else #define UNAME_MACHINE "aarch64" +#endif #define UNAME_MINIMUM_RELEASE "3.8.0" #define TARGET_CLONE_BACKWARDS #define TARGET_MINSIGSTKSZ 2048 --=20 2.15.1 From nobody Sun Apr 28 23:00:36 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513714894806390.5483669636898; Tue, 19 Dec 2017 12:21:34 -0800 (PST) Received: from localhost ([::1]:35754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROOB-0003CT-Le for importer@patchew.org; Tue, 19 Dec 2017 15:21:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROMV-00029K-Da for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eROMU-0008T6-Iq for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:39 -0500 Received: from heinz.dinsnail.net ([2a01:238:43b4:3200:9392:5dcc:2f0e:a960]:47106) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eROMU-0008SV-Bt for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:38 -0500 Received: from heinz.dinsnail.net ([IPv6:::1]) by heinz.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKIsgq012584; Tue, 19 Dec 2017 21:18:54 +0100 Received: from eldalonde.UUCP (uucp@localhost) by heinz.dinsnail.net (8.14.9/8.14.9/Submit) with bsmtp id vBJKIsqf012583; Tue, 19 Dec 2017 21:18:54 +0100 Received: from rivendell.weiser.dinsnail.net (rivendell.weiser.dinsnail.net [IPv6:fdbc:1bbf:5341::1:8]) by eldalonde.weiser.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKGQ24010884; Tue, 19 Dec 2017 21:16:26 +0100 Received: (from michael@localhost) by rivendell.weiser.dinsnail.net (8.14.9/8.14.3/Submit) id vBJKGQpZ007446; Tue, 19 Dec 2017 21:16:26 +0100 From: Michael Weiser To: qemu-devel@nongnu.org Date: Tue, 19 Dec 2017 21:16:11 +0100 Message-Id: <20171219201613.7399-4-michael.weiser@gmx.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171219201613.7399-1-michael.weiser@gmx.de> References: <20171219201613.7399-1-michael.weiser@gmx.de> X-dinsnail-net-MailScanner-Information: Please contact the ISP for more information X-dinsnail-net-MailScanner-ID: vBJKIsgq012584 X-dinsnail-net-MailScanner: Found to be clean X-dinsnail-net-MailScanner-From: michael@rivendell.weiser.dinsnail.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:238:43b4:3200:9392:5dcc:2f0e:a960 Subject: [Qemu-devel] [PATCH v2 3/5] linux-user: Fix endianess of aarch64 signal trampoline X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Michael Weiser , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Since for aarch64 the signal trampoline is synthesized directly into the signal frame we need to make sure the instructions end up little-endian. Otherwise the wrong endianness will cause a SIGILL upon return from the signal handler on big-endian targets. Signed-off-by: Michael Weiser --- linux-user/signal.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index dae14d4a89..81b7fbeb1e 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -1599,9 +1599,13 @@ static void target_setup_frame(int usig, struct targ= et_sigaction *ka, if (ka->sa_flags & TARGET_SA_RESTORER) { return_addr =3D ka->sa_restorer; } else { - /* mov x8,#__NR_rt_sigreturn; svc #0 */ - __put_user(0xd2801168, &frame->tramp[0]); - __put_user(0xd4000001, &frame->tramp[1]); + /* + * mov x8,#__NR_rt_sigreturn; svc #0 + * Since these are instructions they need to be put as little-endi= an + * regardless of target default or current CPU endianness. + */ + __put_user_e(0xd2801168, &frame->tramp[0], le); + __put_user_e(0xd4000001, &frame->tramp[1], le); return_addr =3D frame_addr + offsetof(struct target_rt_sigframe, t= ramp); } env->xregs[0] =3D usig; --=20 2.15.1 From nobody Sun Apr 28 23:00:36 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513715258450661.1405432896273; Tue, 19 Dec 2017 12:27:38 -0800 (PST) Received: from localhost ([::1]:36009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROTx-0007hs-Ux for importer@patchew.org; Tue, 19 Dec 2017 15:27:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROMs-0002Q9-79 for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:20:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eROMr-0000Mb-CK for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:20:02 -0500 Received: from heinz.dinsnail.net ([2a01:238:43b4:3200:9392:5dcc:2f0e:a960]:47144) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eROMr-0000LR-6Z for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:20:01 -0500 Received: from heinz.dinsnail.net ([IPv6:::1]) by heinz.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKIsDM012586; Tue, 19 Dec 2017 21:18:54 +0100 Received: from eldalonde.UUCP (uucp@localhost) by heinz.dinsnail.net (8.14.9/8.14.9/Submit) with bsmtp id vBJKIsVA012585; Tue, 19 Dec 2017 21:18:54 +0100 Received: from rivendell.weiser.dinsnail.net (rivendell.weiser.dinsnail.net [IPv6:fdbc:1bbf:5341::1:8]) by eldalonde.weiser.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKGQOK010888; Tue, 19 Dec 2017 21:16:26 +0100 Received: (from michael@localhost) by rivendell.weiser.dinsnail.net (8.14.9/8.14.3/Submit) id vBJKGQh4007447; Tue, 19 Dec 2017 21:16:26 +0100 From: Michael Weiser To: qemu-devel@nongnu.org Date: Tue, 19 Dec 2017 21:16:12 +0100 Message-Id: <20171219201613.7399-5-michael.weiser@gmx.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171219201613.7399-1-michael.weiser@gmx.de> References: <20171219201613.7399-1-michael.weiser@gmx.de> X-dinsnail-net-MailScanner-Information: Please contact the ISP for more information X-dinsnail-net-MailScanner-ID: vBJKIsDM012586 X-dinsnail-net-MailScanner: Found to be clean X-dinsnail-net-MailScanner-From: michael@rivendell.weiser.dinsnail.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:238:43b4:3200:9392:5dcc:2f0e:a960 Subject: [Qemu-devel] [PATCH v2 4/5] configure: Add aarch64_be-linux-user target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Michael Weiser , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add target aarch64_be-linux-user. This allows a qemu-aarch64_be binary to be built that will run big-endian aarch64 binaries. Signed-off-by: Michael Weiser --- configure | 9 +++++---- default-configs/aarch64_be-linux-user.mak | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 default-configs/aarch64_be-linux-user.mak diff --git a/configure b/configure index 9c8aa5a98b..03d95340d8 100755 --- a/configure +++ b/configure @@ -657,7 +657,7 @@ case "$cpu" in cpu=3D"arm" supported_cpu=3D"yes" ;; - aarch64) + aarch64|aarch64_be) cpu=3D"aarch64" supported_cpu=3D"yes" ;; @@ -6345,7 +6345,7 @@ if test "$linux" =3D "yes" ; then s390x) linux_arch=3Ds390 ;; - aarch64) + aarch64|aarch64_be) linux_arch=3Darm64 ;; mips64) @@ -6369,7 +6369,7 @@ target_name=3D$(echo $target | cut -d '-' -f 1) target_bigendian=3D"no" =20 case "$target_name" in - armeb|hppa|lm32|m68k|microblaze|mips|mipsn32|mips64|moxie|or1k|ppc|ppcem= b|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus|xtensaeb) + armeb|aarch64_be|hppa|lm32|m68k|microblaze|mips|mipsn32|mips64|moxie|or1= k|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus|xtensae= b) target_bigendian=3Dyes ;; esac @@ -6424,7 +6424,8 @@ case "$target_name" in mttcg=3D"yes" gdb_xml_files=3D"arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml" ;; - aarch64) + aarch64|aarch64_be) + TARGET_ARCH=3Daarch64 TARGET_BASE_ARCH=3Darm bflt=3D"yes" mttcg=3D"yes" diff --git a/default-configs/aarch64_be-linux-user.mak b/default-configs/aa= rch64_be-linux-user.mak new file mode 100644 index 0000000000..a69d9d2e41 --- /dev/null +++ b/default-configs/aarch64_be-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for aarch64_be-linux-user --=20 2.15.1 From nobody Sun Apr 28 23:00:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 151371517788974.4529999491291; Tue, 19 Dec 2017 12:26:17 -0800 (PST) Received: from localhost ([::1]:35972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROSk-0006zh-T8 for importer@patchew.org; Tue, 19 Dec 2017 15:26:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eROMo-0002Mn-NE for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eROMn-0000Ic-Pn for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:58 -0500 Received: from heinz.dinsnail.net ([2a01:238:43b4:3200:9392:5dcc:2f0e:a960]:47136) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eROMn-0000Gy-I5 for qemu-devel@nongnu.org; Tue, 19 Dec 2017 15:19:57 -0500 Received: from heinz.dinsnail.net ([IPv6:::1]) by heinz.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKIs7J012588; Tue, 19 Dec 2017 21:18:54 +0100 Received: from eldalonde.UUCP (uucp@localhost) by heinz.dinsnail.net (8.14.9/8.14.9/Submit) with bsmtp id vBJKIs1g012587; Tue, 19 Dec 2017 21:18:54 +0100 Received: from rivendell.weiser.dinsnail.net (rivendell.weiser.dinsnail.net [IPv6:fdbc:1bbf:5341::1:8]) by eldalonde.weiser.dinsnail.net (8.14.9/8.14.9) with ESMTP id vBJKGRvG010892; Tue, 19 Dec 2017 21:16:27 +0100 Received: (from michael@localhost) by rivendell.weiser.dinsnail.net (8.14.9/8.14.3/Submit) id vBJKGR3Z007448; Tue, 19 Dec 2017 21:16:27 +0100 From: Michael Weiser To: qemu-devel@nongnu.org Date: Tue, 19 Dec 2017 21:16:13 +0100 Message-Id: <20171219201613.7399-6-michael.weiser@gmx.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171219201613.7399-1-michael.weiser@gmx.de> References: <20171219201613.7399-1-michael.weiser@gmx.de> X-dinsnail-net-MailScanner-Information: Please contact the ISP for more information X-dinsnail-net-MailScanner-ID: vBJKIs7J012588 X-dinsnail-net-MailScanner: Found to be clean X-dinsnail-net-MailScanner-From: michael@rivendell.weiser.dinsnail.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:238:43b4:3200:9392:5dcc:2f0e:a960 Subject: [Qemu-devel] [PATCH v2 5/5] linux-user: Add aarch64_be magic numbers to qemu-binfmt-conf.sh X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Michael Weiser , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" As we now have a linux-user aarch64_be target, we can add it to the list of supported targets in qemu-binfmt-conf.sh Signed-off-by: Michael Weiser --- scripts/qemu-binfmt-conf.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 8afc3eb5bb..d69953525c 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -4,7 +4,7 @@ =20 qemu_target_list=3D"i386 i486 alpha arm sparc32plus ppc ppc64 ppc64le m68k= \ mips mipsel mipsn32 mipsn32el mips64 mips64el \ -sh4 sh4eb s390x aarch64 hppa" +sh4 sh4eb s390x aarch64 aarch64_be hppa" =20 i386_magic=3D'\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\= x00\x03\x00' i386_mask=3D'\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\= xff\xfe\xff\xff\xff' @@ -92,6 +92,10 @@ aarch64_magic=3D'\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00= \x00\x00\x00\x00\x02\x00\x aarch64_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x= ff\xff\xfe\xff\xff\xff' aarch64_family=3Darm =20 +aarch64_be_magic=3D'\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x0= 0\x00\x02\x00\xb7' +aarch64_be_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xf= f\xff\xff\xff\xfe\xff\xff' +aarch64_be_family=3Darm + hppa_magic=3D'\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00= \x00\x00\x02\x00\x0f' hppa_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\= xff\xff\xfe\xff\xff' hppa_family=3Dhppa --=20 2.15.1