From nobody Wed Oct 22 06:35:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1519852818644766.6422165564169; Wed, 28 Feb 2018 13:20:18 -0800 (PST) Received: from localhost ([::1]:46993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er997-0000Ek-Fz for importer@patchew.org; Wed, 28 Feb 2018 16:20:17 -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) 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) 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) 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 =20 qemu_target_list=3D"i386 i486 alpha arm armeb sparc32plus ppc ppc64 ppc64l= e m68k \ mips mipsel mipsn32 mipsn32el mips64 mips64el \ -sh4 sh4eb s390x aarch64 aarch64_be hppa" +sh4 sh4eb s390x aarch64 aarch64_be hppa xtensa xtensaeb" =20 i386_magic=3D'\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\= x00\x03\x00' i386_mask=3D'\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=3D'\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00= \x00\x00\x00\x00\x00\x00\x00 hppa_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\= xff\xff\xfe\xff\xff' hppa_family=3Dhppa =20 +xtensa_magic=3D'\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0= 2\x00\x5e\x00' +xtensa_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf= f\xff\xfe\xff\xff\xff' +xtensa_family=3Dxtensa + +xtensaeb_magic=3D'\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\= x00\x02\x00\x5e' +xtensaeb_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\= xff\xff\xff\xfe\xff\xff' +xtensaeb_family=3Dxtensaeb + qemu_get_family() { cpu=3D${HOST_ARCH:-$(uname -m)} case "$cpu" in --=20 2.11.0