From patchwork Thu Jan 26 08:04:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 719979 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 3v8Dyn61stz9tJD for ; Thu, 26 Jan 2017 19:06:41 +1100 (AEDT) Received: from localhost ([::1]:36678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWf4p-0006gH-D1 for incoming@patchwork.ozlabs.org; Thu, 26 Jan 2017 03:06:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWf3S-0005jo-32 for qemu-devel@nongnu.org; Thu, 26 Jan 2017 03:05:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWf3N-0003eJ-Su for qemu-devel@nongnu.org; Thu, 26 Jan 2017 03:05:14 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:64789) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWf3N-0003dT-J1 for qemu-devel@nongnu.org; Thu, 26 Jan 2017 03:05:09 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MHci0-1cVY3V3Lqu-003QWg; Thu, 26 Jan 2017 09:04:54 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 26 Jan 2017 09:04:47 +0100 Message-Id: <20170126080449.28255-2-laurent@vivier.eu> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170126080449.28255-1-laurent@vivier.eu> References: <20170126080449.28255-1-laurent@vivier.eu> X-Provags-ID: V03:K0:q6CmC4qci729wdidT4K7L+XFI2FZrwOLc2hC6zMQzBFCDUNmu92 OBVjmopEE32MmqmJ1DyOayM+kLro5od+MxkkzHPR8GlBrU5Uk3We5ZcD51CW+h+bSnM4QEe hJvX8ssDeAu3N5O+DvzcDal2cN727A/7iRjbqWSGCHiJGPmYUdmQpHxtl4SFpoljU17TlQU GR5YQi/4wTKUE9RM/DLeA== X-UI-Out-Filterresults: notjunk:1; V01:K0:VXzUk0DiKw8=:8mvIJvVlhyjfVylc+OhbdT cr227gRxMH0gZRnf4KsqVBumI0yFM/9/FkRIj5biBbvgaqvr8n7CU/R+5aH9niPLbcB6VkEXb mjOrLzcA77rt7bm5hF5Sur9251VLzdI8lCz+24WTA3M1KV3KyKOKgrGtiDqF6FHUumpYTuC5i Z6acvIRyrpiDeD2eMKsW7i6s/YLMzynSFWQICnwKP6HUaVWyZ4kD1nNMWio9ra3bCOHfdnbtR 1qvGZb7bREDR4ackfeXEcTmPUM3+GOvFiaQ0drLIk2bXjEmzuMkCFTwy6DaENfwy6PPPiUoSK tElzXkNlrjn5eg8q8Oswckmi874/arDo/e6YCfZPxQoOVkDvsAUZXvXE2AHA7nxuh5aJJFkgg y2z63eZnq+ta2Lfwz2EjyGfW8iaV2RGa6kz9pDp7oCY5FUx9Au4ujH2gxapHwIPTZ6OQaYuSf RArAVrWplNyk6biKEmtbnM3dn9EgKAi65q9mLTjdcRIpy/rB7d+9yQUGORqR1cg4fj3Gxyt5D 6EfxqK5gkAbiNk0wxD3NoIRRZYPJazy5cPy1XNc8JZ86wvUgdg1qRAB0J8fbBMGV9m6SZiPyE WGTDp0z7K6l/Dwp7ZxKJT3YI01AqWqJBYpJ68TRDxoL3wD7U0MgOpOGtQb8yySF3FgPxkEatP G7W3LhjJt2kjEuoEudCOFPn7zUrD2APhU3WCqDxTWrohF5G4m2ajGWvmJjwfENhMHQ6g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.135 Subject: [Qemu-devel] [PATCH v3 1/3] 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: Peter Maydell , Richard Henderson , 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