RISC-V: define the elements of the VCSR vector CSR
authorHeiko Stuebner <heiko@sntech.de>
Thu, 14 Nov 2024 02:21:12 +0000 (18:21 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sat, 18 Jan 2025 20:33:30 +0000 (12:33 -0800)
commit66f197785d515d3fe5257ed65e189e4ee0b9b4e3
treebcc90d00aa738297c18c0f995d73053122bc2eeb
parent377be47f90e411c10440650864d72d2ecb639bd7
RISC-V: define the elements of the VCSR vector CSR

The VCSR CSR contains two elements VXRM[2:1] and VXSAT[0].

Define constants for those to access the elements in a readable way.

Acked-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Tested-by: Yangyu Chen <cyy@cyyself.name>
Link: https://lore.kernel.org/r/20241113-xtheadvector-v11-6-236c22791ef9@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/csr.h