From patchwork Wed Feb 28 22:16:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10249999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ECF0A60362 for ; Wed, 28 Feb 2018 22:23:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D115828B74 for ; Wed, 28 Feb 2018 22:23:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C53B428C18; Wed, 28 Feb 2018 22:23:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40FB428B74 for ; Wed, 28 Feb 2018 22:23:48 +0000 (UTC) Received: from localhost ([::1]:47354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erA8Z-00010f-AD for patchwork-qemu-devel@patchwork.kernel.org; Wed, 28 Feb 2018 17:23:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erA1t-0003Vk-Nz for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:17:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erA1n-0003at-AU for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:53 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:40823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erA1m-0003ZJ-RF for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:47 -0500 Received: by mail-lf0-x241.google.com with SMTP id 37so5868712lfs.7 for ; Wed, 28 Feb 2018 14:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7fXwYQa850GCl0p4fCfBHzFVIf/TnUGF25bqtqBp1Oc=; b=VSGZxJ+CC4S0sqwjJglSZ2tZ9t7vPSGsIZ/HlXDdI9h52O1hUPL92SAgymVlPB2oWl AMKK5tTZ+qM8cfT4aQjIfR6JFmz5/YKoILKRLu8+lghxM73RZ9zSqCvLenT4k6HfcAus HA2s8qWYeyaLzD1/81I6rU6+lO6gSi1klB4hpyirqPjnXMYesDiENSE3Qp+q3Gmunc85 zqOqVHFr9e0Ve+6KXvbcM2PvC4sEDrjgkEsARY0bWt1p7phoyEfQPNikHyP9EoMXxFYH W65O2lY4RZWz418voQAdYBr002DNvT+y+8Skp2M7Uo9NzRNYVQ8SEVy5YORTHLE98bTS ZuDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7fXwYQa850GCl0p4fCfBHzFVIf/TnUGF25bqtqBp1Oc=; b=eCP1JfNlh4fAbeJ9x88qTAenSr0JtW2VNm6ETQQBFw+UOpjoswzXwTO6M0EDJ93TWM MRGPnoQYz69z2BppJr7bPnPPfOgM8dredQOaNn1bR1ezhTwyJ5/wjFfhb7s15tMSkwVm EIVDyVgToH9aubFPDGHXdWeobu4Q/93NmmshBMEeY6uNm4DA2/ZWoaVXnSZOsr0/LSZT t8yCWdEdX7YLihc+LCOgQ71EYcWcbDfSfzhRuwucqwYH6Xfx844QSJtmTwR6aIWvX8gj /56JmBrMomsRl/xae3U0ygzgfrI7Q9zjmrONRHIVGi8UEwq6CgM7Zudy2yQuT1OLqkiM E8IQ== X-Gm-Message-State: APf1xPBeimYdJo2+tmdu7VV8HkjZeghD9VDsONY+2dh5D66urfTdSDmt 3Jtv8bhLP2hgdgkKpStC9b0Anw== X-Google-Smtp-Source: AG47ELscMcinsXNKXtKyL6c1Z1q7LxB7QPsWaODMg69YG6K1Jrs+inqkyEYmlzELrshotp2zaDXfUw== X-Received: by 10.25.119.27 with SMTP id s27mr11132167lfc.138.1519856205392; Wed, 28 Feb 2018 14:16:45 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id s82sm566984lja.7.2018.02.28.14.16.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 14:16:44 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 14:16:08 -0800 Message-Id: <20180228221609.11265-11-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180228221609.11265-1-jcmvbkbc@gmail.com> References: <20180228221609.11265-1-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::241 Subject: [Qemu-devel] [PATCH v2 10/11] qemu-binfmt-conf.sh: add qemu-xtensa 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: Max Filippov , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Register qemu-xtensa and qemu-xtensaeb for transparent linux userspace emulation. Cc: Riku Voipio Cc: Laurent Vivier Signed-off-by: Max Filippov Reviewed-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 ea5a7487457c..4efc5812aaa9 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 +# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390/HPPA/Xtensa # 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" +sh4 sh4eb s390x aarch64 aarch64_be hppa xtensa xtensaeb" 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' @@ -100,6 +100,14 @@ hppa_magic='\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 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 +xtensa_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x5e\x00' +xtensa_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' +xtensa_family=xtensa + +xtensaeb_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x5e' +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 + qemu_get_family() { cpu=${HOST_ARCH:-$(uname -m)} case "$cpu" in