From patchwork Mon Jul 4 09:33:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 587113 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp648725map; Mon, 4 Jul 2022 02:42:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1taV5Trhy73CnL+YA4LAUeQvniNcKS1U+DDiWJ0Jx2qDaYgCB2WFru+aKzNnijByta/J+dr X-Received: by 2002:a5b:f0c:0:b0:66e:32ee:2a85 with SMTP id x12-20020a5b0f0c000000b0066e32ee2a85mr8792692ybr.30.1656927743720; Mon, 04 Jul 2022 02:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656927743; cv=none; d=google.com; s=arc-20160816; b=X47hleqWjlA+FmKMPT+Fc9ac0255GYazjYa+PwuofCKOzudmbeALgdWs8/tdTgQRCo Tjm51VcGR99OQdunDZkkvxnKmfgYn6iwpVZADjUSS6KI7XFb4EHtH+DHPApLtXhah6s9 LrUaJ0Ulf37hTnw1eYy//XL0IKSp0Hi6z3sg6CyoWk27Iw6DfCUDqWKI829x73PPz+r9 BVipsaKS8VLhrE/gf4DDSXGoG/FUS1dCw3JZHgQmyvqMcyIeZFrVhtnhjSmOaZsIJdWr fEikeCQ/0hy1rdEYnrxu2K7OpR3DsydY5D/siMkOb1c+oGRavkzQXhIVnHInB/9snnVK z77A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pR1kqzu7xwtxnUko8pBi5w8sHK9mw7vU5UGn6K+yNzI=; b=S+qjR6dM2iH6m7vp5Od4QY1g0IE4NMGrzbENA/cQpPXDTlPGWRALxNY4n+XmbV5BQk VUEZKPS3UykeYnurFPak3pMDTmcdv3+CikhVT4XMyaBoppYL1IqboJQrORQWeORK2GvJ BYT5T6/dpy0jbM74c+wQI7cIq1UYELCB5nmpvzNrIxQYq0Yz1zsnDBEz5/HgRrw44Uvd 7G4lnp89n38P06nuls6TS224HU7GQe5OYf3YiwldlB7n9Rg9USh4YWKKw6IzVpazjN9X xElSuSJdlIog4lWansOIeMFYoQ1GofZXis2feMSDkXOCZvwKUK2R/XXy+wEgKgspLMcv sOqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YDLM+t8j; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 23-20020a811217000000b0031c915158b1si4770142yws.104.2022.07.04.02.42.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jul 2022 02:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YDLM+t8j; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8Ib1-00039S-6M for patch@linaro.org; Mon, 04 Jul 2022 05:42:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8ITH-0000Ic-RA for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:34:26 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:35538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8ITG-0004xB-DL for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:34:23 -0400 Received: by mail-pf1-x42e.google.com with SMTP id x4so8469442pfq.2 for ; Mon, 04 Jul 2022 02:34:21 -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 :mime-version:content-transfer-encoding; bh=pR1kqzu7xwtxnUko8pBi5w8sHK9mw7vU5UGn6K+yNzI=; b=YDLM+t8juK28vWXHYDwK8oJK3P1dz6deSepRcCQcpEntdO+rK8TtX8Sl0YPJDUGNYn ye5oLc0hYESnDy2RoNo2s6mHW2l9NsiAr53ij7fjBFhQacRB381gVRHwiTA0Hl5pq3E8 Aj/FSnLHJGt2ap//ICunmO0LYEZd4gWVtw43pgopRikJ8nb4YXW0QprGSFJfJ2RxNiQt x7gIUV43Ozr6JmPySmr+75Oos+D19Q+UVmkhaDPsFc+EqspDsakdyjJT53mHuPorXRFa yRTn/GmAKcM5vvfK4IQVQwcIVhQBhHqzOsfB29bZxsRQVkd499HAhDhx1S8kekaEwk78 KxZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pR1kqzu7xwtxnUko8pBi5w8sHK9mw7vU5UGn6K+yNzI=; b=2ersxYi30vAkDBHdVJ3m5qFKJ8FinYMZyb6V6gnF/vRQeimIa8AU7wdHOAD2mreEME ifOQmjYnMt+vNmQJGdv2Ycj9FAJevsGpWo1gECClt6iCZGXviuTkNXb4BvlrK2PW4+t1 7VwM9wNXl0KlAGMLnETsm2tmw9jjmz+BeAVeMgxOqqRK/uACE5tx1BMLtmAo2f/6GxZi 1qOa7Bsp9JjUiYtS3wTkEFWRf6KkhpEvucSG9HeaC3/COfB5/6lI68038rTD4SjruqSh yPinlj3Lfh4JN43B0lWU37YVgXOBONawU2yHbdOCnArQYlgCKr5vGphOWxbSooKIxPuC 0Q2w== X-Gm-Message-State: AJIora8sgTCSfccXganCbALV/e56emWc7RIGsQTGo4dDnEFtUT0X8UGN K95/C++jVnSqczxwLcnVvA+ALl+41K9VWfYy X-Received: by 2002:a63:4d5f:0:b0:412:12cb:b09f with SMTP id n31-20020a634d5f000000b0041212cbb09fmr8964166pgl.26.1656927261015; Mon, 04 Jul 2022 02:34:21 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id z5-20020aa79e45000000b00525b7f3e906sm15353355pfq.27.2022.07.04.02.34.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 02:34:20 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao , Xiaojuan Yang Subject: [PULL 06/23] scripts: add loongarch64 binfmt config Date: Mon, 4 Jul 2022 15:03:40 +0530 Message-Id: <20220704093357.983255-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220704093357.983255-1-richard.henderson@linaro.org> References: <20220704093357.983255-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Song Gao Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Message-Id: <20220624031049.1716097-7-gaosong@loongson.cn> Signed-off-by: Richard Henderson --- scripts/qemu-binfmt-conf.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 9cb723f443..1f4e2cd19d 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -4,7 +4,7 @@ qemu_target_list="i386 i486 alpha arm armeb sparc sparc32plus sparc64 \ ppc ppc64 ppc64le m68k mips mipsel mipsn32 mipsn32el mips64 mips64el \ sh4 sh4eb s390x aarch64 aarch64_be hppa riscv32 riscv64 xtensa xtensaeb \ -microblaze microblazeel or1k x86_64 hexagon" +microblaze microblazeel or1k x86_64 hexagon loongarch64" 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' @@ -140,6 +140,10 @@ hexagon_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x hexagon_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' hexagon_family=hexagon +loongarch64_magic='\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01' +loongarch64_mask='\xff\xff\xff\xff\xff\xff\xff\xfc\x00\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' +loongarch64_family=loongarch + qemu_get_family() { cpu=${HOST_ARCH:-$(uname -m)} case "$cpu" in