From patchwork Wed Feb 28 21:06:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10249831 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 1F95760211 for ; Wed, 28 Feb 2018 21:19:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C96628DBA for ; Wed, 28 Feb 2018 21:19:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 007E428DBC; Wed, 28 Feb 2018 21:19:42 +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 705C228DBA for ; Wed, 28 Feb 2018 21:19:42 +0000 (UTC) Received: from localhost ([::1]:46993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er98X-0000Ek-KC for patchwork-qemu-devel@patchwork.kernel.org; Wed, 28 Feb 2018 16:19:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er8w4-0005sE-Ta for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er8w3-0000nS-NC for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:48 -0500 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:33446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1er8w3-0000m2-Fl for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:47 -0500 Received: by mail-lf0-x244.google.com with SMTP id o145so5652593lff.0 for ; Wed, 28 Feb 2018 13:06:47 -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=HobGpjWGYN5NXumXhBJM0X0A3cN9oOVTUIJFNAdY5IWTTuEaluWffcQz5eyibHgYv6 e7abZLgxW+sF5mxyoBcE8ks8rdrOfOWa9fOE4Uk0r6VLOWJ9xKtOAlbc5UEA1DpQ/+AC Piv47Fx5zY+ocvcW/VwL83CkA43uh6OqFmXDZDAzecPsjcSM55jxcgu0q10vMCROaLQh 4dGFKukDuCpGP5VT7PgoJtuGlmIHDOeS9OfaZprD6B1XPb1B1tdLs6Z9MWV+LuT+kWv9 QDe4ID/VRzgwdyCHdJVORhVPAij9+/Gtj0G8gBCIFDDurjhr78lMj9wXhRR8JjqvFqHk e11Q== 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=JbxgyJw2w3On51zxlpqQpXniCeCwlWOztAUT8IM4DYBjyBSg4qOzHv89rHKEdsUOOS ZmVbGUA0T4U+xIAHt99NztU6JUMD9OR4OI8w4RHTzlyj++83f7UxhXioKlw3AnTDMqkz 4LcjZiAZtIXVR/zEY8KwE+sPxIVNvf69zCgqPDsnn9GTpHRCflYcboCyoV6PfVPMGoQ7 +HPVQO8t06TSLXQmBUFco+K4jnnG4aMMQ+YLAeNxSl3ZdkT25bzPMpM3RyVzey1+4ili VNTTkHTx5xzCDG0r9rxdjahYIaCebdEAwAvzsqvkG+tcHBk6JWRuqmlDl5/b7djLXRz9 uFcg== X-Gm-Message-State: APf1xPAqXVfQPEceq9fGfD3akHktvfGGkhLXD65/acExby4bV2LhQbFT OW2luh56qVsL9OIB0pZhNeHO4g== X-Google-Smtp-Source: AG47ELtUIK30t2ck4sIORnMAPm9MMgLIvEhFifBoP2LCjMx7xd8m+luT7tctMC+CV6deZv2/x/Cy5A== X-Received: by 10.25.81.141 with SMTP id g13mr13480583lfl.19.1519852006139; Wed, 28 Feb 2018 13:06:46 -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 l8sm547134lfb.19.2018.02.28.13.06.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 13:06:45 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 13:06:15 -0800 Message-Id: <20180228210616.2756-11-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180228210616.2756-1-jcmvbkbc@gmail.com> References: <20180228210616.2756-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::244 Subject: [Qemu-devel] [PATCH 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 --- 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