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: 938005 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="K3KHyh5/"; 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 41KBBV1s2Zz9s29 for ; Tue, 3 Jul 2018 01:34:26 +1000 (AEST) Received: from localhost ([::1]:33580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fa0qN-0005R6-Qc for incoming@patchwork.ozlabs.org; Mon, 02 Jul 2018 11:34:23 -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-Google-Smtp-Source: ADUXVKJ7x9TDDsYs5DTplv0/zo2kQuycn1nGCxGIPSSUj5nQ6K81GfB7LlmXy4ZjTfNokbH9YY8Yjw== 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+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