From patchwork Mon Apr 9 11:52:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 896258 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 40KTGX6H2Kz9s2S for ; Mon, 9 Apr 2018 21:53:39 +1000 (AEST) Received: from localhost ([::1]:60578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5VMf-0004jb-2k for incoming@patchwork.ozlabs.org; Mon, 09 Apr 2018 07:53:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5VM8-0004ie-Rk for qemu-devel@nongnu.org; Mon, 09 Apr 2018 07:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5VM3-0007Ib-WB for qemu-devel@nongnu.org; Mon, 09 Apr 2018 07:53:04 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:53247) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5VM3-0007Hl-MP for qemu-devel@nongnu.org; Mon, 09 Apr 2018 07:52:59 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LjLuJ-1eUWlm3GUZ-00dTBL; Mon, 09 Apr 2018 13:52:45 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 9 Apr 2018 13:52:12 +0200 Message-Id: <20180409115212.875-2-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180409115212.875-1-laurent@vivier.eu> References: <20180409115212.875-1-laurent@vivier.eu> X-Provags-ID: V03:K1:xLGI1Hxa6yTWZddWRIlVKp30Gw7Nf9aEP5lI0fJDNiafA+2M7Bt EPv5mU4HIgW9ug0DCbOJivBu8/nK+m21TST7j0J2x44QGJaQQmlJ22BPo++9wrePV/Xvgje xCaifmDBClnykwJIlDn1SqFr8sSBF23VlTpQecVjcpCtR83dU/DVRgnECD105TggAxYKbO3 L/+CEO/lBwmAnNpAbfXaQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:H4SWZtHI3Xs=:djMbvbw9Kr+ZFLZbz025Lm nPhRKxZ7l8TuWF8aqahEn66TwWr44Y42st/uLi8EGo2QicMBnjp3BSlPDxpRbqWkFjFGf2GcD 9ORxJGgY46KbKgqAoOGqWtmEQzVP/BmEhs9lFq3JHBgQZeMMu3RxrB1S/oxa3e7ZtggmGVPdU w+eOOS7EY+sjc/xHHqJvtvlcAna12RxQMttIoTb5A+syx8n0srT0bao5+xj2n78ieedli4+Bk WF48KHxbFlRxIWlCejDsmRjCAAR6RW0WuQqz8/buW7vtsglZ97PPWoV41SCclrAxBrrVK+HSQ MpVNEXHb8Bc1/dIJ/OozSjgejEQkbNopsiEk78jXf31Us7KEpRFPI8eV+BkRrEQd2aHiJJZon bsV6oZiEumVS42+q6i1HTGlVYTJfRdZG9Mx5N/i2/LDmY0QQXwLGa72w+PMBK+vOsX1FZQFxH SPxmZgkSMiyxgaMF1wJz8fZZhiIYr9yKtVldDJwKnhe1piUL/zaVahbCymZZTLh1iP5X9YoXb qfhsicU+o2ptXNdvQnIlvX+o2vnPo57cLtMLgTQvAu8LOMm/cJK2USEkfk8AEQMgi1YH8W4Fx p1gXSN2lYPibUb61ZOHd4kqlMhuKJTnNN4fcDuwB4Z0B86cNcL5adiwaYohAi6CSXT37FierL zQ+etcsKWKi+B43y6ZmXO4KqFgoLcY3EWH96HZ2nUVrSYOw8Xg0oO7tQBbpspHAY2peHaNt1v GTvvrVXRzzEguV82kXU0rnYtSPvpZt6tRs/jtQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.24 Subject: [Qemu-devel] [PATCH 2/2] 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: "Edgar E . Iglesias" , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Laurent Vivier --- 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