From patchwork Tue Apr 10 16:01:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 896791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu 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 40LBpC2TzTz9s1p for ; Wed, 11 Apr 2018 02:05:07 +1000 (AEST) Received: from localhost ([::1]:54055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5vlZ-0000so-9o for incoming@patchwork.ozlabs.org; Tue, 10 Apr 2018 12:05:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5vim-0007r1-JF for qemu-devel@nongnu.org; Tue, 10 Apr 2018 12:02:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5vii-0002Hb-IH for qemu-devel@nongnu.org; Tue, 10 Apr 2018 12:02:12 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:35041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5vii-0002FU-9B for qemu-devel@nongnu.org; Tue, 10 Apr 2018 12:02:08 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MNAPk-1f86Vb0ay0-006d8u; Tue, 10 Apr 2018 18:01:59 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 18:01:41 +0200 Message-Id: <20180410160142.21096-3-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180410160142.21096-1-laurent@vivier.eu> References: <20180410160142.21096-1-laurent@vivier.eu> X-Provags-ID: V03:K1:zYC+3p7xL5ar8QENLpBxRTUQ4mw76k8J40AFGOkG18i0HTHEHoA ypH8fqm0+qcESphJ+8pDMTpfoqampbT3t5K0ATw4b7heDgj7cHL2BZkd2f/56eKzvyBtJvJ ySX/SKjgXF+2rUGgJirZOQWIz1IkPF6PdwdyCJngm7rEqzmQ3GEeC8MZkZ8Pwrrk9hhgTIx 1oBR2AgEbc3UkFq5X/A0A== X-UI-Out-Filterresults: notjunk:1; V01:K0:L88qYHA21nc=:8eeOhbIIZ2Wrsm+HC4yeE4 l/U/2h63RsQWoy5R4wajBYnRFV6nabZc2K0KPQuaY031IpjsDN+ZZmGq4QbgMxS6t/pZ3CnG8 OXGR9W596WjP3bV3Qw8BGLNnW0JcAoeQW3RQ8vm9pvkvB1NNIpihNG6+ZChFpj30fSdPLOrOV zY/bbHlHbLuEXR4pSDp/Lkzmww40MFY0MK+mXL3E4ZP7susz2QseNNw0zdPTFg4SQMivAJZTS oNiRi+nwkgzq4oz36i6jg3bA4bXaXV4PbUZP2HDCQLp4LUNevgNVxOkeAcgjCADyYKAc9CDKy FeVTOqInpjU6R/96+Nh96V6P+NdPJaeKdtpTIJx9XNBp1vkKdXJbxGoypcT7+pSgPSr6R1C0t LMqcetT4wf+wJ3xHeOMQA+BgSdKa7ui957vPWhICYmF4iDUZdRxLz/4MSId1EBoS97rU63KNN OpJh6DgxHliUntbl5WjtfqLAoXRAngQwWJIuvQhMyyJ44++FNJFxmNPMQqKhBxfaS3h+PqkHp dM9rnHcK4UAqgIivuzrDDxfyATdZjhQtThTTxYcUO+qCLsCDuRBC+EiNl7HV184uPbzq44aFN 6u4HZ4ENq9brB8wvBALasHc8vAevG35Dxo9vYnRUexOJZq9KRfjy0TQTaNTOlWSfOBJTsiad/ SOBXl+W39ML2HmYRDuJf56qxMZ/XFOc5mo+tpCRU73dANEsHQDkbmq/4ZTwhCaTHm9dodmCdo 5Q9WCBHB5vG8r6NKd1tCBj59xwqSOWaORKenNA== 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] [PULL v2 2/3] linux-user: add microblaze/microblazeel 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 Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Laurent Vivier Message-Id: <20180409115212.875-2-laurent@vivier.eu> --- scripts/qemu-binfmt-conf.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index f39ad344fc..7ab7435fbd 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -1,10 +1,10 @@ #!/bin/sh -# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390/HPPA/Xtensa +# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390/HPPA/Xtensa/microblaze # program execution by the kernel qemu_target_list="i386 i486 alpha arm armeb sparc32plus ppc ppc64 ppc64le m68k \ mips mipsel mipsn32 mipsn32el mips64 mips64el \ -sh4 sh4eb s390x aarch64 aarch64_be hppa riscv32 riscv64 xtensa xtensaeb" +sh4 sh4eb s390x aarch64 aarch64_be hppa riscv32 riscv64 xtensa xtensaeb microblaze microblazeel" 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' @@ -116,6 +116,14 @@ xtensaeb_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\ xtensaeb_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff' xtensaeb_family=xtensaeb +microblaze_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xba\xab' +microblaze_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' +microblaze_family=microblaze + +microblazeel_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xab\xba' +microblazeel_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' +microblazeel_family=microblazeel + qemu_get_family() { cpu=${HOST_ARCH:-$(uname -m)} case "$cpu" in