Message ID | 20240619-xtheadvector-v3-6-bff39eb9668e@rivosinc.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8A39C27C53 for <linux-riscv@archiver.kernel.org>; Wed, 19 Jun 2024 23:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=urPIT1rUC/UnXkjPz16Um3EXT7DhVlYkdWLSvFJ/0Os=; b=Q5s8aYoeKpYQFS dhzLYcibzonxKCa63nlXBhIWmCLEOwY5kuBeySbQ1WGcaXY2gEGoLOw1FHbjeOQlhj9Mjv/Qgh39t 52mYU6t+trvV3wWhdZhKGeM8pXZbJrr6OF+SuKX2VoNRKcBMQJ+Sc1UPATEog95WXacay9Vnz4JlC UjbQ2rxkblF8BL7MRI+qEV/0PiCVPNva3jevOlGsRm0/o5oMberQHvOrDodjXMA6m4YsJ1l2UYg4D wQg5C1wYwJ3ryfL3WgwT1hcWUbKgAEIZ97Z//ZwbcmG754Gy/jlbvaVAHYrqsh9/DQ/G2tobJreo8 5I/Ql08paBTZUlSyUk1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK5BV-000000033rJ-0kR4; Wed, 19 Jun 2024 23:57:49 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK5BK-000000033ir-3AGv for linux-riscv@lists.infradead.org; Wed, 19 Jun 2024 23:57:40 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1f6559668e1so2323695ad.3 for <linux-riscv@lists.infradead.org>; Wed, 19 Jun 2024 16:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718841458; x=1719446258; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uTwy8+5rnzy3gl73dMXkjs3dSWWWtlQ/UyJt8IClQYA=; b=IhkUItTB0gX+ybVZBVk9Rjc3NhXxC1pPVT9kajE3uGnutGR/8A+mug12Q/BqvMCgMU m0iuD0s1KDd8TB6CHDw4heQWHvFXPauMIH9IGU5nZosfWLLgc2cPkM8DMVkvJRzCy4h0 xi6BvDbiqxrwwwmhh0T34bueo1DlIUUY6ldRPOsMNa0WZyDNMqOMXVsSai8fNKCQPGeM 8h0v8iaVPIUEoL1OrZdQIrzlzkUU46CmLrKjGqc++BDf/tLknQ3M+gVMXMIujNtgG8bd WOPEYGO9hlClCaDytc4zAXWKAy4Q25OV3LqhCU3gXMhh7tXtShqix1swnj9urdTqlbUf bF2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718841458; x=1719446258; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uTwy8+5rnzy3gl73dMXkjs3dSWWWtlQ/UyJt8IClQYA=; b=kplXXCU8dtffxX2GaeqtwBzkRM2F7U01fKh2yM2UjFThh4r7pTIDBv8/xAWwbc8fQf 0NgpOE91l81XA7zIqz6YgyCSTeODOwogcbaUP6DuSXS+kpdxK8e76akrznrJxLHcVqEn 841DD37cnchM5Y43b9nqzc+TG22AutMRCV/KZxAQf61iezUwsVICAHfz9bA/64H4caB1 QCXeOYaOyMPygucXDcfxCor/Or5WCDAMjz4UdPAx9bTDGiAuX1EKfNuZhUfuldUgESJe ywEEFkuk+GTgMzV4vxDCSYNDyy41oGkmY1W4VHF5deXJoTa+p5LSRFc+RUOLxcwj1Uo2 +nlA== X-Gm-Message-State: AOJu0Yz2b5iCRZtAGTItfWWdJ4O5FDG7xJt/OkOio9RzwiVKlVKeuj1T eKLzJo1muZiuRtIq+rDWRUzzKbpYohG2dpwUAneXkbGwpfPxE6T1lxajregoZuI= X-Google-Smtp-Source: AGHT+IE5GxcCbYVUqRQAYZB2fGalRM1/KcCVgJ4MPIDeYCRSoNUOvqpKzENG3PJ5PkMVuBWcY7ClxA== X-Received: by 2002:a17:903:41c7:b0:1f9:aa05:879a with SMTP id d9443c01a7336-1f9aa461e71mr43504705ad.43.1718841457808; Wed, 19 Jun 2024 16:57:37 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855e70ae6sm123620745ad.71.2024.06.19.16.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 16:57:37 -0700 (PDT) From: Charlie Jenkins <charlie@rivosinc.com> Date: Wed, 19 Jun 2024 16:57:19 -0700 Subject: [PATCH v3 06/13] RISC-V: define the elements of the VCSR vector CSR MIME-Version: 1.0 Message-Id: <20240619-xtheadvector-v3-6-bff39eb9668e@rivosinc.com> References: <20240619-xtheadvector-v3-0-bff39eb9668e@rivosinc.com> In-Reply-To: <20240619-xtheadvector-v3-0-bff39eb9668e@rivosinc.com> To: Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Jisheng Zhang <jszhang@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <shuah@kernel.org>, Guo Ren <guoren@kernel.org>, Evan Green <evan@rivosinc.com>, Andy Chiu <andy.chiu@sifive.com>, Jessica Clarke <jrtc27@jrtc27.com> Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Charlie Jenkins <charlie@rivosinc.com>, Heiko Stuebner <heiko@sntech.de>, Conor Dooley <conor.dooley@microchip.com>, Heiko Stuebner <heiko@sntech.de> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718841444; l=954; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=UncKWDVsLq8cp22oK+C6VrFrX0H9dgX4jkpq4hmlQlw=; b=WbT1KOfNMU+zDjaO9lUICJklFM+CBWd14ygVC0UvezCEX23pEA8YTxFkTdvkWoeBTPH4UfPSH QPKAbtQJEsYD2JPv8TzVdBwyR2ZgJW/8on5XEWLAtlUAP34WCF85qPz X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_165738_897542_1B00BAF4 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org |
Series |
riscv: Add support for xtheadvector
|
expand
|
Context | Check | Description |
---|---|---|
conchuod/vmtest-fixes-PR | fail | merge-conflict |
diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h index 25966995da04..18e178d83401 100644 --- a/arch/riscv/include/asm/csr.h +++ b/arch/riscv/include/asm/csr.h @@ -216,6 +216,11 @@ #define SMSTATEEN0_SSTATEEN0_SHIFT 63 #define SMSTATEEN0_SSTATEEN0 (_ULL(1) << SMSTATEEN0_SSTATEEN0_SHIFT) +/* VCSR flags */ +#define VCSR_VXRM_MASK 3 +#define VCSR_VXRM_SHIFT 1 +#define VCSR_VXSAT_MASK 1 + /* symbolic CSR names: */ #define CSR_CYCLE 0xc00 #define CSR_TIME 0xc01