From patchwork Mon Jun 18 18:40:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 139059 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4291902lji; Mon, 18 Jun 2018 11:55:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDljtSijmQl2xF4oSnDjDQrJ9fqLkqYrymVDnemmuBKxyw2EKp8zEBVwl0VuN9OFWtExsx X-Received: by 2002:a37:6b44:: with SMTP id g65-v6mr11020630qkc.357.1529348156497; Mon, 18 Jun 2018 11:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529348156; cv=none; d=google.com; s=arc-20160816; b=B3MLdWHc1OydLpuW5YDW0VHCoXT2h8hncJnihLYNdQz5sHdYEdXY/zDsl6bK9WNAYq 4z3c0OcO4CyjKY1QAY9gbb/9rQHH8vvyMAZsGfDTbw0Zr3UnNNzlhVUweG2RKrmwhNWA aAWo6q04I4C0kRMHg6laLG0NhH5dhp5WAEWK4dL7VPtgozXfhkv4coH4BWQYE5nTDvzT zkqoPYUgYginALkVDv6qV1ei4xiW/ruDFl5KuwHQLTXzF5izW+ARY+z8FK1VGdFfY6f7 Yg55G3P+HEHhCcyydnFcGzspDhqFksifhMGQ+lpOp/UMyfqZdc27aYoUbGUE85pD1zwQ HzxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=iTILNdw0hnTGA/3RfV2xAFyT61IwjcHouXiNyX/Bhc4=; b=zxheL4IdrfaQOvStGdp24jLVcWYFXv8DWHfW5g7nJgg+m6mzBq7v8T3MEuhVbYR9/G n5hkNumYVr6Ezuto8ZuZeYH4WmxR1z+K1uJypOOy5THYVw3mHXwYPxZK+TG8k4FBwQT1 5FIKuECgRUHIgxGf+qlH1OjTc4nEPP2EiCcJEZBl2R0CupQ5pE2fr2SVDwY4iKQPnj3H 8T7/Tszo7A9BGv0RNlRK4MQRG4c/OlxHuXAXr6Dg7SIfby1o62pkkQO8pfsJ2/FwnwCJ uDG2xpn/+FZewhiHdeaDqYrLCmC+WuMfAOxBGnYz/wXjI9ij29UJHLi2IjmW5gmHqSaM Swkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GEMUsYZN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id y2-v6si4453476qvi.233.2018.06.18.11.55.56 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Jun 2018 11:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GEMUsYZN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUzJk-0007Gg-0h for patch@linaro.org; Mon, 18 Jun 2018 14:55:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUz5k-0003f1-Bt for qemu-devel@nongnu.org; Mon, 18 Jun 2018 14:41:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUz5j-00054s-HB for qemu-devel@nongnu.org; Mon, 18 Jun 2018 14:41:28 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:47076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUz5j-00054E-B0 for qemu-devel@nongnu.org; Mon, 18 Jun 2018 14:41:27 -0400 Received: by mail-pf0-x243.google.com with SMTP id q1-v6so8602309pff.13 for ; Mon, 18 Jun 2018 11:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iTILNdw0hnTGA/3RfV2xAFyT61IwjcHouXiNyX/Bhc4=; b=GEMUsYZNSwm9O8q+LXI1zXLjfsCFWE2rN2pHy909/hHrFvHMxpmnKpzqBps+oUm0HN G84KGF59uuQohHK0fm9BrbiQEKa3N7QGkDJ5Npi4c6lVrAQVAR0Wgul2hDcS7OVkN0BM /6gi0gSJALD1WBHTUCGY7NJFzlZ3uDW5ItQ5Q= 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=iTILNdw0hnTGA/3RfV2xAFyT61IwjcHouXiNyX/Bhc4=; b=egBpMuigK6HU/4e/noYOkD36BtBICLeCXW8auoaWOQ41BPbQQTT9hlFmFUBMKZnPY0 TIsZeB4iEKj1d3DPgpTK9wJebEVSAqYC75A04Re9udo8If7BXSm03qXOZ/dw7JluWsjL a8bKm+L9/UB82hoXl//o1iT0TaPiqXFNnimeYAIPhMYllEQYr5c8H+4zzeCz+mQEJjjw cAtMjGR0sDZhKSiv+8wB2DPS0ARpwa/KQjTN1B3V4UoMbV1wBumhd29shP/HyRLB/GvM tPIIr0FJNkGnD45bdse+/Fj5QZGNZF4mXj8P2CJoopShaWSLYd701lEhQwJHzs2/XGcC CleQ== X-Gm-Message-State: APt69E3JT5FbbgNNI+KQEi0xfHdfcg0zRYPA0JPPBEaTDKIKKyYH5PTr VqlpOqIbeGbCLjai1yg/ia2f680wX0Y= X-Received: by 2002:a62:6710:: with SMTP id b16-v6mr14835755pfc.37.1529347286154; Mon, 18 Jun 2018 11:41:26 -0700 (PDT) Received: from cloudburst.twiddle.net (mta-98-147-121-51.hawaii.rr.com. [98.147.121.51]) by smtp.gmail.com with ESMTPSA id i65-v6sm49457254pfd.17.2018.06.18.11.41.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 11:41:25 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 18 Jun 2018 08:40:44 -1000 Message-Id: <20180618184046.6270-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618184046.6270-1-richard.henderson@linaro.org> References: <20180618184046.6270-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::243 Subject: [Qemu-devel] [PATCH v2 20/22] 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: shorne@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- scripts/qemu-binfmt-conf.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Laurent Vivier 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