From patchwork Thu Jun 28 03:03:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 140400 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1652358ljj; Wed, 27 Jun 2018 20:16:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdKWldi1uGUK9f1fDAHMkAZqj+nQBt+V2BsdOoeZncxnWlueFVOzKzNGkgJNnR1rSIY8s04 X-Received: by 2002:a0c:9e99:: with SMTP id r25-v6mr7625325qvd.230.1530155795186; Wed, 27 Jun 2018 20:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530155795; cv=none; d=google.com; s=arc-20160816; b=wVOvxNmAG5+nAh3m7UKIOjqndVpKIBGd/AnqmNOEMvI0oi4R0dd0sojMXcFNzjA8lG eysDtVzhfIXBw/DkAySZ/JrV0rQuInGXitud5z4qv7BMDdn+AyvPOPuw31ATgk7qiBlg HfMe4SEGjvUpe7NIi6yuDNmWZGdeqV2UUxMwmFH2blagIlZsrI5CVI+PJXa8RO9esE3N W9AOdI9bUKjCzg0ZwEqJ6mO5aQUU5RAZgSOueo8g0qsx1cAOU94ZXu1tLOuZ7NqRs7mA S1BnzXxjJ6z194UsOZndoqvoi1noyDrsBHN7+0TubyYTHQXPkIJWIwgEoVL2lf8uBLzm ZhaQ== 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=yIn6TyEZ6/crkb0RZ7okyByW0TTgtJ88YNc4nTVzFQw=; b=k+vcrA0aOIKanwRRbFZ4Pn8M1Sl+ZjuWrbx9M6t4rXJkx+bztPb3JgKR5HzZ48x/57 wpIdFVPOQP7WcQu4+aP3vID9p0WJYZCOnBOHIWrTvQiijHGGQ/BqbI/2STHcZ+l/JLYE RxGSKY1hB5MxK9ISXV2IjBjQLud6JY87NuKasEXfrLXFrIWFkWRtmSh2wWDUuq7eWL7k wjPH2VO75DbqA+Llt922me4D1PaYqmFgsQfww4D5c8HgQGC5k0VqgsHRvPlWS/El6PBT ymo2DMYeTGbbHkfY8a89GcIvJQvbenqTP5KcbkoPzyKf/lOiDuiAkrOJBHbxlAN2DGIL xIDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C6dQG8g9; 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 l66-v6si3818786qkb.298.2018.06.27.20.16.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 27 Jun 2018 20:16:35 -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=C6dQG8g9; 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]:34308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYNQA-0007AB-Fn for patch@linaro.org; Wed, 27 Jun 2018 23:16:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYNE4-0005FA-4K for qemu-devel@nongnu.org; Wed, 27 Jun 2018 23:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYNE3-0008Ej-5h for qemu-devel@nongnu.org; Wed, 27 Jun 2018 23:04:04 -0400 Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]:37754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYNE3-0008EZ-0i for qemu-devel@nongnu.org; Wed, 27 Jun 2018 23:04:03 -0400 Received: by mail-pg0-x230.google.com with SMTP id o11-v6so1798012pgv.4 for ; Wed, 27 Jun 2018 20:04:02 -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=yIn6TyEZ6/crkb0RZ7okyByW0TTgtJ88YNc4nTVzFQw=; b=C6dQG8g9WjT/1BzuKArrJC9XHzbe1kb7SBJap+2mOwxtzwu9Lf0hoU+qjOA3eIWfzA mpC2j0EoRHm2Z58zsfhQUAYCXDC9alzptLCr75DzdRxpGtjK0gOKN5AAQQ3xjwtX/oWi t1W9PKqDD0BteTZ9sfh7arNUU2wxRl8S/1Nas= 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=yIn6TyEZ6/crkb0RZ7okyByW0TTgtJ88YNc4nTVzFQw=; b=pQCpuZzTTkIGs7UEZ35RrE7zQgcTaMxkcxsCSIpuZ0xq9UIFNeqSvi4eTy6H1Dl0x5 mgw/ldHdyc7vqVp1Q0P0dEsSJqy7xtkw9OfICmzXQ8R6BfZIK9beamj3mH16wC486HSQ klZDpRojJA1ttnQrV9zbS6m5qCwMFMIeiVHvX7oMiIzROaBBkq26CUFqq0zzkPry2UnV PePPgN5OQQj8BWSZOwEBFiTzR8lpHxWnyWLKYujuYH5llc+oK7MlO89kGAcAJ+JCIZas B4wTEapPQ62zeY6WiNAZAWTgUiS0B+lVZcE765HnXR4+bmJNHYE40ba/enx9UnGHV/yx LveQ== X-Gm-Message-State: APt69E1tPXqZkHP+2pXCjo+G9EVUQ+xCfii7hVEhHsx+euhzbVwHfqBQ SIRgNNsBAwyIJTJcUcEFX8pIWgg3qOo= X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr7228482pgn.415.1530155041762; Wed, 27 Jun 2018 20:04:01 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-112-211.tukw.qwest.net. [97.126.112.211]) by smtp.gmail.com with ESMTPSA id y15-v6sm8030489pfm.136.2018.06.27.20.04.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 20:04:00 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 27 Jun 2018 20:03:28 -0700 Message-Id: <20180628030330.15615-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180628030330.15615-1-richard.henderson@linaro.org> References: <20180628030330.15615-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:c05::230 Subject: [Qemu-devel] [PATCH v3 21/23] 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" Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- scripts/qemu-binfmt-conf.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.17.1 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