From patchwork Mon Jul 2 15:10:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 140818 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp90979ljj; Mon, 2 Jul 2018 08:34:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf5tsNlsitvoOT2m51qGrgTPyJ8dxBHUPakLp75bE5XEW6Dk2IeVlrerZHUkCO20JnaIOMD X-Received: by 2002:a0c:93dc:: with SMTP id g28-v6mr22731666qvg.153.1530545644956; Mon, 02 Jul 2018 08:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530545644; cv=none; d=google.com; s=arc-20160816; b=S0vqcv7r5icS8m8DNB/8LOly6gKV/JxA/n8m7HAMH4ePbjk8nOgjyIdOkJeAOznMZ5 6Lh6MB7wsrq6ghJhTCG4td28JQrrNiGLX91+hGgPg+Hy/finD2NsyvJbf6pe+hGdh6DT dTqMhrPwrzLFi+t0l5iIakB6KFpqSoIP3K33m4Tpo80AM+I2NndvJjlk7tKfuKwn3NSy 2nfDLvWjdqZTfNalz0lxfuHVY1EvrRHh/RgaSmrseY0cv7JDEFhBwA5jI06VBtY0jZf4 /z4ffpgze3R0jkRgOlJEIJgecf8Pe2eSZouCx9CrFLZZT+XNNTtekFWrbnszjKG9ysTS T7Tw== 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=dkOZj/ZqKz8fgp7lnx+Urncpk3L1UM+0bsh5NWkTToY=; b=WnyGMcuYIyFTSrGSFUD2ymJeMRfz6OkMI68KRoMRtvuWAdL+5kMIUgbAlaE3ZOQrLJ YhZtgkgmVoMGa8ZvTiF62c3knkcjq1KfeUtLsYD6JwvP916zQ043fhmaS/j7xd5Cob62 91A3/2I9aDoPswDxDd/br26SLqc+o6ZJAXG8YTt5/udV1D75eUhrDdA0aPo4tSJoKW6a 5dPdjwdJJoQg03BaZs2DGBgtb2kObB0aib3xZUT4KbaIz3Ca/8t4Nb9wm5dKa6sSuFNZ NftJZnM72twPeWcBSGZt1nwhzHGqKG0+rBZhcgStz2SQfZHs5fvB2ANIEtaTs5I33KnJ 5OAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="K3KHyh5/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j18-v6si140169qke.52.2018.07.02.08.34.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 02 Jul 2018 08:34:04 -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=@gmail.com header.s=20161025 header.b="K3KHyh5/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1]:33580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0q4-0005R6-5D for patch@linaro.org; Mon, 02 Jul 2018 11:34:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0UG-0004VG-DS for qemu-devel@nongnu.org; Mon, 02 Jul 2018 11:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa0UF-0008Jp-Cl for qemu-devel@nongnu.org; Mon, 02 Jul 2018 11:11:32 -0400 Received: from mail-pl0-x22d.google.com ([2607:f8b0:400e:c01::22d]:34291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fa0UF-0008JY-7P for qemu-devel@nongnu.org; Mon, 02 Jul 2018 11:11:31 -0400 Received: by mail-pl0-x22d.google.com with SMTP id z9-v6so8099164plo.1 for ; Mon, 02 Jul 2018 08:11:31 -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=K3KHyh5/otDH1//tNkZTYgd293q592W4f5pXCQeEIIQS3T1y9vXj6FkeWsxQ8DmQA7 nANYPwGyeC7AA+CglivPLiOZOIUNVDt65RDrPqnbd7SHiTY6yFTwEF7KsA1BF1L3u1py bBQ8B/1JoQT1n7MNbniOpZVgkb4N9UZel/+MiE6XFY4xG55Kny4mOsJAmRke8KFf2HC0 1ZG/JkMU2rxAMWcgpDRaRhDQnEGGmDYpK3tGzdVbgWjXzZOe/Y8EmkFm1hZi0m2b60sq W1xRpk+DBnri9qE8XI6TIrIB3bNUFcTuYV7cksuo+QU8LN3ztxSxtjvp2zzP4tJDL2Iv TCXw== 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=L+3LnJ1Fdg4fE6WsOuky1+fXXVJx9wvFf2SDlzqEFLIOKY9oEf6EgJ6iUKbKYg/ogz GuNjhUQDt5qG8zxwJaONVWBE3CPgDWCOSWBuFXuVRvUfb+a90efKfZ92o2NFiIRA60uw 1ZSYeFOdEJjOkRlzx98Xi42epMeOMdHHlY8c4KuNv7inq92O0co6En50HLdYivQGWScl d67FtNIsoR56//6Mx55cNcd+gTq38iLsqjyX/xRZmDR/sjLwp6yQZgPFxMGwxjz5nyw/ QaWht22IssS6ekPy9kXRnimcAjdzPj1OB6HP8Vs9rxuoT9SQ+d/lmBWO13gVv4kzCDqP xD2Q== X-Gm-Message-State: APt69E1JLe4XiSRtoRGiymKOx6RvUiiMXc5knXTVnLKlKdjAqcY6XKcI 7z/FsrfvIWS2IZebD4yCF5A= X-Received: by 2002:a17:902:650a:: with SMTP id b10-v6mr26618210plk.45.1530544290459; Mon, 02 Jul 2018 08:11:30 -0700 (PDT) Received: from localhost (g90.124-44-6.ppp.wakwak.ne.jp. [124.44.6.90]) by smtp.gmail.com with ESMTPSA id a27-v6sm28654596pfc.18.2018.07.02.08.11.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 08:11:29 -0700 (PDT) From: Stafford Horne To: Peter Maydell Date: Tue, 3 Jul 2018 00:10:19 +0900 Message-Id: <20180702151023.24532-22-shorne@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180702151023.24532-1-shorne@gmail.com> References: <20180702151023.24532-1-shorne@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22d Subject: [Qemu-devel] [PULL v2 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+patch=linaro.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(-) -- 2.17.0 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