From patchwork Wed Oct 23 03:34:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 837788 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1f12:b0:37d:45d0:187 with SMTP id hh18csp260668wrb; Tue, 22 Oct 2024 20:37:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOR+6ISnNMWLzqYkiOlHQDYdsfui6Qkt0JGaPWsef5CfAjqQ7IOP7FCOJtWrQyHxMF4E3yBg==@linaro.org X-Google-Smtp-Source: AGHT+IEiGCH33zQc2A/Ern54t9QbKtGkLC/XliQ/A1kR2Q8D1p7vRfDIi3qnnsJ60aUn7fllBxoy X-Received: by 2002:a05:6214:3909:b0:6cb:9c55:4215 with SMTP id 6a1803df08f44-6ce34275f94mr17385686d6.33.1729654645790; Tue, 22 Oct 2024 20:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729654645; cv=none; d=google.com; s=arc-20240605; b=KKzDXngwhC0+uYIqVd4M90x0ztwUC9ZNfSsBQNjVYWPdLvGvooVdrSu2tlfwUdo880 mfQc9Ca9D9qClNv9/JEh2Xt/oBvE9amG6+yfLu1OPOzl0bqxF1JAGwIpvEJMCSwSo299 /oSQi0IaPzNpF4XVn8Fh6YGTgcB66XZ1pDky9sCKKXmCioXlUvGHotypwnSAQCH8zZRA wpGdNwkXYEG3oPnHF2M152YcFiMGbYbFnKjusFpBUjVm5LLRMR5B8QfR+rhCjXfhEMaX WorCQ/27FK9yEqhVYU0Iix6ogb8O7BxPiFXcu2Y5Y5G0i/t67syNaXG2TY2SP2sSn2Jh nF9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=9wtdGS6j59IEw6lp5Sp3jQrC+uEbTCdVdwYMkROoHlk=; fh=kzFAM3WhvnQjOC5NFlH2YVxUzpn9s1YOJGiqdLdjMfs=; b=bx08V/OqhjrqI/xsU3rnh0kZWi+vzZcLLsggjp507PLbSC4F5cv8E5EWdKCyVG8db4 B7IfGpTCvjpFy8w/GdqWeHouwHh/g+Q/HiLNKEPJJt5l3XqNg3dctc1JnUtoRXJWnnUC XNK1/+Qq396k9/ysevdtt0pEaQ2YrzE6vnkBrdc2mkzgXdl9rQMD0vMFi045w031pVch 6rFmOM0yWmCG9XAES/zsUDL8apgUhVykdFRht5M1YAna7SewBgU5Gt5Z5Omz+C2czZVC tXz1KgLHrY62+ciZkuzjLfGjme2pXPjhBEogaxe3+gRB4JZG4AD7eH0BLrdx7WwlS66j K/KA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aL/nQjbG"; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6ce008a09a1si80794926d6.123.2024.10.22.20.37.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Oct 2024 20:37:25 -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="aL/nQjbG"; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3S9E-00073e-3M; Tue, 22 Oct 2024 23:35:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3S95-0006zn-Ls for qemu-devel@nongnu.org; Tue, 22 Oct 2024 23:34:52 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3S92-0008MO-KR for qemu-devel@nongnu.org; Tue, 22 Oct 2024 23:34:51 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-71ec997ad06so2082879b3a.3 for ; Tue, 22 Oct 2024 20:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729654485; x=1730259285; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9wtdGS6j59IEw6lp5Sp3jQrC+uEbTCdVdwYMkROoHlk=; b=aL/nQjbGpBGfe4vk6v/C4jPc64xwF0zIZRvpdxSkcayoEzMPoC6yUxsS8l5lwyOrkL vEk/Nv6cZLxUUp/aD+nHgZ+AzNBDmMm/BhQXnlav52Kfgn0wmtg0wBd2AHZXYEOqJdQK CwnacN7T8erKSrVFb0mGKO2VY9eILFlEZ1Ud5DRQ7b+cxD8uXssLkO/Vo2airCKO/Mgp RzSNxp4WOT0JuNvSTDZrq1t2OkSRlKout0OJb4gQOhkOUX7GXsYpEXUY8eii8m3w/pay 2Ahy+22PCwRdRXI603w5cphrcGocBFZzE2Q3Fgd0kKJ2bBZUwUOJskBNM5SReG8gE+Uf uBaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729654485; x=1730259285; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9wtdGS6j59IEw6lp5Sp3jQrC+uEbTCdVdwYMkROoHlk=; b=VNv0jkJerbu1AUhQwRhA8ADqfOKme2BvuDFk8hF83hAFDEvqZSHyGzrEBJo7NyQMCx O4Q/p/0xPkgHfLmVmKG1IXqnOVPPJEzQZJG0qVLHYF7BrVpWzotrQGMQ1cJ8iOP9T+4s 3jWPxE8cWO9Mn/OM09S9Yt1h7Oip83p3e8C1ALvEYP183MQQOR5IXLSDaikYXDZ4/zqJ P0HBe+3iZVLtZ8NIe9nNoWdczfcWT6dCuuAM8ngsiJS+4fZ1F7GAu8dFN6GpAnBgC0nb yTzbjHOjYkOSJvhEKkHq6AS4m+bItyvR5m2RNHzgGiHYecKswaGEoi4H4GBfAbOwHDxX Gzqg== X-Gm-Message-State: AOJu0YzQnNawvdfoIwHlsEfiYyFeRWsqhNZnWYPbZrD+TgpUdOmUpyf5 2ANeiPTxWcoC4lg3u6lIU/x+zUZkfy6iWYZpCgPbC/i9XbVcVnJUOTpFWixtUIpSV29dIw/Logc O X-Received: by 2002:a05:6a00:4f88:b0:71e:6ec9:fcda with SMTP id d2e1a72fcca58-72030b67096mr2299377b3a.19.1729654484843; Tue, 22 Oct 2024 20:34:44 -0700 (PDT) Received: from stoup.. (174-21-81-121.tukw.qwest.net. [174.21.81.121]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ec13d73b1sm5438338b3a.105.2024.10.22.20.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 20:34:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, TANG Tiancheng , Liu Zhiwei Subject: [PULL 14/24] tcg/riscv: Enable native vector support for TCG host Date: Tue, 22 Oct 2024 20:34:22 -0700 Message-ID: <20241023033432.1353830-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241023033432.1353830-1-richard.henderson@linaro.org> References: <20241023033432.1353830-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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 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-bounces+patch=linaro.org@nongnu.org From: TANG Tiancheng Signed-off-by: TANG Tiancheng Reviewed-by: Liu Zhiwei Reviewed-by: Richard Henderson Message-ID: <20241007025700.47259-13-zhiwei_liu@linux.alibaba.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/riscv/tcg-target.h b/tcg/riscv/tcg-target.h index e6d66cd1b9..334c37cbe6 100644 --- a/tcg/riscv/tcg-target.h +++ b/tcg/riscv/tcg-target.h @@ -143,9 +143,9 @@ typedef enum { #define TCG_TARGET_HAS_tst 0 /* vector instructions */ -#define TCG_TARGET_HAS_v64 0 -#define TCG_TARGET_HAS_v128 0 -#define TCG_TARGET_HAS_v256 0 +#define TCG_TARGET_HAS_v64 (cpuinfo & CPUINFO_ZVE64X) +#define TCG_TARGET_HAS_v128 (cpuinfo & CPUINFO_ZVE64X) +#define TCG_TARGET_HAS_v256 (cpuinfo & CPUINFO_ZVE64X) #define TCG_TARGET_HAS_andc_vec 0 #define TCG_TARGET_HAS_orc_vec 0 #define TCG_TARGET_HAS_nand_vec 0