From patchwork Mon Jul 2 13:58:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 937913 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bzSAAB26"; dkim-atps=neutral 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 41K8Cd6j6fz9s4r for ; Tue, 3 Jul 2018 00:05:17 +1000 (AEST) Received: from localhost ([::1]:32974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZzS5-00079m-Jg for incoming@patchwork.ozlabs.org; Mon, 02 Jul 2018 10:05:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZzMA-0002pG-Qj for qemu-devel@nongnu.org; Mon, 02 Jul 2018 09:59:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZzM9-0008PN-TR for qemu-devel@nongnu.org; Mon, 02 Jul 2018 09:59:06 -0400 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:41854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZzM9-0008P1-Nd for qemu-devel@nongnu.org; Mon, 02 Jul 2018 09:59:05 -0400 Received: by mail-pg0-x232.google.com with SMTP id l65-v6so7195026pgl.8 for ; Mon, 02 Jul 2018 06:59:05 -0700 (PDT) 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=dkOZj/ZqKz8fgp7lnx+Urncpk3L1UM+0bsh5NWkTToY=; b=bzSAAB261XQx6ctEh14PLCepHdDXfb2Sa9osBw0QMrBXmPa0mZBoebA86bCWWqGfvX WVhD1+sh30V6JLgQ4Emd51Her+msFBsRX9u7tv0MVg3EZU13x/16wilVc1wAiGGj0Jyt vCPmqOHamotP8B5unzENoZ4gtkZt9GdTG72CELJfByjOhVmzUhpVo8ogVqwXEG7l8Lg1 mxSw4QLw6xsgqrmUalFm0HG5YvPB9g1l8R1luvpYNd8tD6sAya551FnPFVa+7Ux+CVYO 5YmDcxRVsxjNRobyBPYz3WX4C/+FkJE6XylNkKezMh+KGvcO9LOV273Tf7HJu4XyxKG4 3JBw== 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=dkOZj/ZqKz8fgp7lnx+Urncpk3L1UM+0bsh5NWkTToY=; b=dK84kCsF/j3+Pkdpc35NaYnwYD1WZnAWMEnPlZWb7hZ8msiZWoCj1/B0oZQLklBzR7 S6nlSlHZlLKtA8Nv+DeYvEjkPOoX/8rIrbEd0n1MxYvzfrMlN13h1hYNFiwdSY9+cdUQ 1SJu7xZXwsLkzh6oupS5SY3pDy5ugimUc7cnHgeeEPgecSNWG3jKM83Iuw7rhwofvW2G oebttiHS3cimy+t0cnb1J9VcXBdvXPvkom3CEI6CNCC6UIBmYN2R+i/aPbKY1iBUdyk0 Bo/cA21GFc85bxJh9/nY0XvRbVXfzwOqinCuMEEhD11Up6b19h4HNN5+qFLAYjxYFwFx Ao2A== X-Gm-Message-State: APt69E11/ofnVSTONKWV7M/KnmiSey557GTFBOujTzEbYVYKjFBb7/s/ yNKd7CjaQ+Wu0iilURnteMw= X-Google-Smtp-Source: AAOMgpeK3BQSrUl5630CvMCt4azNHeyxrvJRGjG85j2lNPYWpZ35uTJ7MWfGtpotGimIf/ECIthCjA== X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr12005578pfd.181.1530539944769; Mon, 02 Jul 2018 06:59:04 -0700 (PDT) Received: from localhost (g90.124-44-6.ppp.wakwak.ne.jp. [124.44.6.90]) by smtp.gmail.com with ESMTPSA id s2-v6sm11792570pfh.186.2018.07.02.06.59.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 06:59:04 -0700 (PDT) From: Stafford Horne To: Peter Maydell Date: Mon, 2 Jul 2018 22:58:02 +0900 Message-Id: <20180702135806.7087-22-shorne@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180702135806.7087-1-shorne@gmail.com> References: <20180702135806.7087-1-shorne@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::232 Subject: [Qemu-devel] [PULL 21/25] target/openrisc: Add support in scripts/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: Stafford Horne , Riku Voipio , Richard Henderson , QEMU Development , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson Signed-off-by: Stafford Horne --- scripts/qemu-binfmt-conf.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index d7eefda0b8..a5cb96d79a 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/microblaze -# program execution by the kernel +# Enable automatic 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 microblaze microblazeel" +sh4 sh4eb s390x aarch64 aarch64_be hppa riscv32 riscv64 xtensa xtensaeb \ +microblaze microblazeel or1k" 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\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' @@ -124,6 +124,10 @@ microblazeel_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\ 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 +or1k_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x5c' +or1k_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff' +or1k_family=or1k + qemu_get_family() { cpu=${HOST_ARCH:-$(uname -m)} case "$cpu" in