From patchwork Wed Jan 25 20:38:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 719861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v7xkr5Lk7z9sCg for ; Thu, 26 Jan 2017 07:40:19 +1100 (AEDT) Received: from localhost ([::1]:34429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWUMZ-0006HN-KE for incoming@patchwork.ozlabs.org; Wed, 25 Jan 2017 15:40:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWULW-0005Wo-2P for qemu-devel@nongnu.org; Wed, 25 Jan 2017 15:39:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWULT-0007Ow-3J for qemu-devel@nongnu.org; Wed, 25 Jan 2017 15:39:10 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:58943) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWULS-0007Oi-P5 for qemu-devel@nongnu.org; Wed, 25 Jan 2017 15:39:07 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MSUzj-1cv3kC3nRr-00TQnq; Wed, 25 Jan 2017 21:38:56 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 25 Jan 2017 21:38:51 +0100 Message-Id: <20170125203852.19254-2-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170125203852.19254-1-laurent@vivier.eu> References: <20170125203852.19254-1-laurent@vivier.eu> X-Provags-ID: V03:K0:UZFxruL9z7fvCEwbZBiWdABaXplaSurlH8sM6QRwPd8DfOp1LBy xJFJ32tVT1pG1uOyb3bscNG1MLjlpzTvcwaEG2GlpBOOWFqYIdeBSLIt4qImCtMUR9Gi4Na ST6lXMnWsPSiXTZ3Xns6Z+o5BTaBZnroRLBjr//Wd7XV3xxSQ0D9aYLzgjsGR1ldOqetCjn r4r3lV7eeSC8unWBOV9Pw== X-UI-Out-Filterresults: notjunk:1; V01:K0:qA9vV6Q066k=:z8VJ2T+PaOZHgWj2zX/XOb N+XbQc1DhVg301alXZNm0UmWnipyiUC4RiPuU2k3CKnZf2B+9a6/hSERMJTWCIV66RmZwWDqC 4jGnW/5BPWX5LB0ohlVRDFyPy630dbZfsTYACiSmo5wgLIJHBWZAx8T1KkOKlxtxJJQYFWmFw s4Ts7FxsgFHdqEeR74+/hc4pMtNGxTlUaOLP7YE16CZSRoqfsgeL5JIb69fskYfxdzTlXxwez iEv9cOsJck6D2nJnSphEcfixDyL0Q4axJEFkddrL3L/Oij3NoUlAM4ZJf+gVq81KRqG9ZmxwQ SEsyRgCJmhY7uIAdotCo4xiXP6pRq04IDEbbxJciKUZMqWVKtJOiN1GvE2e2PDb3BpakENHLO PlY/rwjVsoflbTXTPB3gNu75KrLCDy9nAlz9DTmtmInkYMIM3ZOL7Hk9jWb7RdU8+uB+OOZtw IzWKv1KIwSFkUFVT3y32djrNvkn9yBLKA6rygArbRdhbKHNXJwtTjmhY3s6hXz+ADAETrzZO1 ztP6mXr601NOmOCA4lLRxIf8jV4usgNXsvLhDU61Mg+YJfevsFaj7fSDrTlEoBzitpFLi/Nff Ua6Eg8XTxcKQFu7s6xlem9+bUZM/yEz933DuKyOvpJZ07K5E7v1FAHVlvzmdIcWhyS1Zsp55S j34cO3sKoZoUr1EsM+JFaY9/xzbQySL4PWeAF9iiB8HkyhDxv84p3mxSOawupnN+Eua8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.133 Subject: [Qemu-devel] [PATCH 1/2] linux-user: add hppa magic numbers in 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 , Laurent Vivier , John Paul Adrian Glaubitz Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" As we have now a linux-user HPPA target, we can add it to the list of supported targets in qemu-binfmt-conf.sh Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- scripts/qemu-binfmt-conf.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index de4d1c1..0f1aa63 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -1,9 +1,10 @@ #!/bin/sh -# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel +# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390/HPPA +# program execution by the kernel qemu_target_list="i386 i486 alpha arm sparc32plus ppc ppc64 ppc64le m68k \ mips mipsel mipsn32 mipsn32el mips64 mips64el \ -sh4 sh4eb s390x aarch64" +sh4 sh4eb s390x aarch64 hppa" i386_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00' i386_mask='\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' @@ -91,6 +92,10 @@ aarch64_magic='\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x aarch64_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' aarch64_family=arm +hppa_magic='\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x0f' +hppa_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff' +hppa_family=hppa + qemu_get_family() { cpu=${HOST_ARCH:-$(uname -m)} case "$cpu" in