From patchwork Tue Dec 21 16:47:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 526622 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp5244461imb; Tue, 21 Dec 2021 09:13:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGOyTXcQyao37LdjAwy7ybMRppDbJmK7ctvD6I7tHRvwVIBrTpTlVk5z4x2RlRDR8aF6RQ X-Received: by 2002:a05:6638:2725:: with SMTP id m37mr2667903jav.266.1640106826185; Tue, 21 Dec 2021 09:13:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640106826; cv=none; d=google.com; s=arc-20160816; b=YOsM/ikx+LlZ/wmdU2GEiqaqyhoklkGzPnNqhXKPkNC5iH7tFT148SOTNbPws5dsmt 7rbiwrB2xKTbDIIVDQ64O7X3vBnlM/mFYjypnWoOjfqMy9qpsV5t1zroKogEI0q9bCfu aLejcc9sEARw8H5RtAIAiw//YE+95TUFkc6l0VPXl6dIQRlKts5vPfS4pFLLEyPgCOk+ jh6voyr+evfa8gPIdbP697t2SpBy7mxuTxnHBWMsBFmHXeYsXOd6K6kLepTPEOfQvmjO cUWzPueuA7CcWHfP9nbt/n2Voe7aCmh814ALvzYUtZ7UwbfCglKHmO6De/R9WaWTPx4h boMw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=bsfEKlYqYyVVIZAQxrO42ZoY7uXuqNeBFTeiKhl2LqI=; b=fN9wksewzsn29fONrKqjISYwjLnd4+WM1Fvn4nogsroXrklNCrY8ckdMvn1Rqac2Vq RTiRFWcy3GL2gzvKrIXhQj8Yg8M5d5THS3iGBxGMZXmDTe0aCW9l91m5KZ0OsGXRJ/XS xFMWddA/cRtzU7Xn+VkgiYExcQtEJ6ukuykG62X9HInBB5o5yThRRPTaSVN1bGr5m7vF U67uFv04b+BYCh6e2Dm2VCAi9gKAF+Hnuxtqbtd2i7DbitHr/afmYh2QB6JLcjEdjb9T G/gGIwmm5jdoH6fMek4G271sw1ijcPiCHHnwqYgCseevfnNgQNdkSDOfzXGEOzn6KvQE Dr8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bFwnFJsi; 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 d10si19021172iow.33.2021.12.21.09.13.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Dec 2021 09:13:46 -0800 (PST) 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=bFwnFJsi; 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]:44764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mziht-0001QB-N8 for patch@linaro.org; Tue, 21 Dec 2021 12:13:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mziJC-00014a-2h for qemu-devel@nongnu.org; Tue, 21 Dec 2021 11:48:14 -0500 Received: from [2607:f8b0:4864:20::529] (port=34560 helo=mail-pg1-x529.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mziJ5-0007fn-BX for qemu-devel@nongnu.org; Tue, 21 Dec 2021 11:48:13 -0500 Received: by mail-pg1-x529.google.com with SMTP id g22so1065902pgn.1 for ; Tue, 21 Dec 2021 08:48:06 -0800 (PST) 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=bsfEKlYqYyVVIZAQxrO42ZoY7uXuqNeBFTeiKhl2LqI=; b=bFwnFJsi7hGliIJK+j4FHZsusrSxSBIavzzPuUiC+wp8dw7KnWAKuDHRaSOfi4kJ+u HfQKvKQY//R6V8LAGpTfr7dnsqk/2Uw3FQTYUmR175Riby7XZdzbTOxPoa2Qh79ZAxvl bofZqTNR489OtFYteMUrFcLPm7xBqtUIeP8Ej+YMoButWARIL5TcJ9fANRYKbb+CkKwb SHVLevjeLMOa/qpoVa9sbsv2mQXUrNMtDovr2Eh+K186xEPO1kYA76I1S/ORiOliKoQz lxYlSKY/PcmfxlXOd9rVlh59/6zZULU6PCQk3FWC7221bCUc1w26TFKh3VetF9ndyL7d oohQ== 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=bsfEKlYqYyVVIZAQxrO42ZoY7uXuqNeBFTeiKhl2LqI=; b=n7FUtbeSc3FunRJDv4AQVllYobRTh8bQdVxqbfmVuZAnQBgQXlCr+CuKu08JYXBCGv ZJpBjd+lb3r3rzfEqlDAjzYFHXOmUYtm3FU4L9TRXNqFWBvTZ8fo2aXvLUt+r6u/ZbxQ 3qo/lSMyjb+lJzOIrc80osDOBQENDsumcDRdm4aucaZOaLElU4+V3JMzWtvt7CVWkNIv MHcP+5D4hX46OjFZfrMMA4P9YFXbyiqBzqL+VFUa1KcnJBGeJfvXDm70klaix2oLHJY+ UvsKN2GKLstDiTXiWLhaaQLc1C7wZ7xRi5RrKb3tslMAkYCs0wV8HtUHKCS8VZXP/G9B k7fw== X-Gm-Message-State: AOAM531j9/1jWTW36fmn15IK7le+r/vfplkUbYztMof6ergSvmltVyZx qZ+blUTHHxbyRaR31SWuEJ6kQpNrZ4Wipg== X-Received: by 2002:a65:6488:: with SMTP id e8mr3662440pgv.416.1640105286148; Tue, 21 Dec 2021 08:48:06 -0800 (PST) Received: from localhost.localdomain ([156.19.246.20]) by smtp.gmail.com with ESMTPSA id b192sm2256818pga.35.2021.12.21.08.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Dec 2021 08:48:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 30/31] configure, meson.build: Mark support for loongarch64 hosts Date: Tue, 21 Dec 2021 08:47:36 -0800 Message-Id: <20211221164737.1076007-31-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211221164737.1076007-1-richard.henderson@linaro.org> References: <20211221164737.1076007-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::529 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x529.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: WANG Xuerui , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: WANG Xuerui Example output of `uname -a` on an initial Gentoo LA64 port, running the upstream submission version of Linux (with some very minor patches not influencing output here): > Linux 5.14.0-10342-g37a00851b145 #5 SMP PREEMPT Tue Aug 10 12:56:24 PM CST 2021 loongarch64 GNU/Linux And the same on the vendor-supplied Loongnix 20 system, with an early in-house port of Linux, and using the old-world ABI: > Linux 4.19.167-rc5.lnd.1-loongson-3 #1 SMP Sat Apr 17 07:32:32 UTC 2021 loongarch64 loongarch64 loongarch64 GNU/Linux So a name of "loongarch64" matches both, fortunately. Signed-off-by: WANG Xuerui Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20211221054105.178795-31-git@xen0n.name> Signed-off-by: Richard Henderson --- configure | 5 +++++ meson.build | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8ccfe51673..9724631609 100755 --- a/configure +++ b/configure @@ -631,6 +631,8 @@ elif check_define __arm__ ; then cpu="arm" elif check_define __aarch64__ ; then cpu="aarch64" +elif check_define __loongarch64 ; then + cpu="loongarch64" else cpu=$(uname -m) fi @@ -3719,6 +3721,9 @@ if test "$linux" = "yes" ; then aarch64) linux_arch=arm64 ;; + loongarch*) + linux_arch=loongarch + ;; mips64) linux_arch=mips ;; diff --git a/meson.build b/meson.build index f45ecf31bd..6d7c02bad7 100644 --- a/meson.build +++ b/meson.build @@ -56,7 +56,7 @@ python = import('python').find_installation() supported_oses = ['windows', 'freebsd', 'netbsd', 'openbsd', 'darwin', 'sunos', 'linux'] supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64', - 'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64'] + 'arm', 'aarch64', 'loongarch64', 'mips', 'mips64', 'sparc', 'sparc64'] cpu = host_machine.cpu_family()