From patchwork Sun May 27 14:13:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 137024 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1793423lji; Sun, 27 May 2018 07:26:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJgbP6IN8EtJgQu7ftKTWD7jEKaRgLA+Tv4UP+8iGnX+h/f/6AIx6WhAUUjcMgokXY1DeX+ X-Received: by 2002:a37:ab17:: with SMTP id u23-v6mr4891365qke.407.1527431202657; Sun, 27 May 2018 07:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527431202; cv=none; d=google.com; s=arc-20160816; b=mjFLSFzifASsqfVtAN25cl8xhLTu+f6KpMBto+7+4OVGj4xR1tRD3PhYqifACz0tMp GnLLdxKt3Zt3lVHbT3VE49kquxiDyZhfH7ME5Xave2ttXqGPVdq4DeHPyKXhKEO8cZh9 o/L4pzcHNVDixJZiMIPzqykoY2N1CCA2sEY7D5jMru38dob+z4O1p6SB47QVIoXo2iZc rOngfKxucmdwjZ6N8QVjyKFFuZZ0nSOGPIKA0kiDKZD7qOfXsHYMJ1KhHxBHHtlNJR7a 5XNVoTzEU6rhf2W9V4hIy8E90HEee0IQrnZltPZoF2kwW9l57WT0LvbmsxugmbM0wGMW f8CA== 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=f9A2xMf+WmnVHFBUGc1uBlz2tvMisdhCeonDhGT8tyY=; b=yZq5Npab5/lUQtuLTQicsTl6l/CDQpLnvtrk2cD0V1Pa4WfLkK+1wg5bBGFG7FJ18C PvzXj8+oXwkwVIavhhJWjPmPemjtoegAgOybYEhYUbuQ53RtAzht6I4BOUJEkjCnQ6X5 VL+3FlbCZuw5RHOFGvj3nYv3KQoOyDLnnjxFVuT7rVFOJT8IhdrHLnPc9yvWF8yLjIXr ZfrKXOYMSFsqIWG+DbMgNO/4+ZAR2v4N18kP3yWImSv4F3RtH6PuWpxyQVjhCJDpiOP6 kvakaW2qH5Qcav5wFmpqvljKlppmy/znxXT5015c0xl8TNLZz6glMrOH5dccry4Al5pf WWwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WAMg+WoH; 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 o19-v6si1407077qtb.380.2018.05.27.07.26.42 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 27 May 2018 07:26:42 -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=WAMg+WoH; 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]:52262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMwd8-0001Vr-2w for patch@linaro.org; Sun, 27 May 2018 10:26:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMwQr-0000J0-Ii for qemu-devel@nongnu.org; Sun, 27 May 2018 10:14:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMwQq-0004Vx-Lm for qemu-devel@nongnu.org; Sun, 27 May 2018 10:14:01 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:46533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMwQq-0004VM-G3 for qemu-devel@nongnu.org; Sun, 27 May 2018 10:14:00 -0400 Received: by mail-pl0-x242.google.com with SMTP id 30-v6so5727074pld.13 for ; Sun, 27 May 2018 07:14:00 -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=f9A2xMf+WmnVHFBUGc1uBlz2tvMisdhCeonDhGT8tyY=; b=WAMg+WoHQo+AWZnA+0HmD5+BGXY/HQs0haRlmNDo9l0/SYoNyaHFFs+jS51w+M02pm j+dkbrVkH+owrSpYgSwnNWXJAHfDCUNUPWOPuoqss3Cy7Du3Mgfyfhz4WhbV5RQlYOnl Xcq+Wx19E0N4Oi3AhTdEpFXf2C0UaTMQtVydw= 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=f9A2xMf+WmnVHFBUGc1uBlz2tvMisdhCeonDhGT8tyY=; b=uduqeMIQ1kus3qJv4zVywW2z2z+mZiJveqxXIc9TEJfHKw+BLdksbOeEOe32UAj35E qrpjQ94xfLunFExvw9eYGcZIBmkQE3Ml6A8aIyxsM9JGWiqGVi/vAjG/kbm9qmX8nOTS zm0/G0+aD5t0Y8KjzYx+B3DCL2he5D2LHIFDwx/1SZtCVsDqBeWPg8SCLJB3OcrE6GyI C2VdOhjpQVCEmVfiUcfttRfiJm5sgKEPJmY6SiOZ0GWm8iY0wUAQWRmSYWgyEJaPnGjA P6a5A5JclNSD4hpP4gMiBOpFJda+3l8sJ8isVS95PrG3V77zN3PkxaNo440tbJR8Kth0 ofyA== X-Gm-Message-State: ALKqPweQWAClLymmP+6zpkB3Tc4Jgg0SHmzePiJ5R0N4rOG8l/5GUWQ/ qTd/J7vNVrZLrdjRxIuE/lE4n8kWsGErPg== X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr10214205pls.270.1527430439365; Sun, 27 May 2018 07:13:59 -0700 (PDT) Received: from cloudburst.twiddle.net (50-233-235-3-static.hfc.comcastbusiness.net. [50.233.235.3]) by smtp.gmail.com with ESMTPSA id b89-v6sm66680075pfd.85.2018.05.27.07.13.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 May 2018 07:13:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 27 May 2018 09:13:24 -0500 Message-Id: <20180527141324.11937-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180527141324.11937-1-richard.henderson@linaro.org> References: <20180527141324.11937-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:c01::242 Subject: [Qemu-devel] [PATCH 20/20] target/or1k: 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 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.0 diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 7ab7435fbd..75ed7c6b65 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\xff\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