Unverified Commit b9a93144 authored by Charlie Jenkins's avatar Charlie Jenkins Committed by Palmer Dabbelt
Browse files

riscv: csr: Add CSR encodings for CSR_VXRM/CSR_VXSAT



The VXRM vector csr for xtheadvector has an encoding of 0xa and VXSAT
has an encoding of 0x9.

Co-developed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarCharlie Jenkins <charlie@rivosinc.com>
Tested-by: default avatarYangyu Chen <cyy@cyyself.name>
Link: https://lore.kernel.org/r/20241113-xtheadvector-v11-7-236c22791ef9@rivosinc.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 66f19778
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -314,9 +314,14 @@
#define CSR_STIMECMP		0x14D
#define CSR_STIMECMPH		0x15D

#define VCSR_VXRM_MASK			3
#define VCSR_VXRM_SHIFT			1
#define VCSR_VXSAT_MASK			1
/* xtheadvector symbolic CSR names */
#define CSR_VXSAT		0x9
#define CSR_VXRM		0xa

/* xtheadvector CSR masks */
#define CSR_VXRM_MASK		3
#define CSR_VXRM_SHIFT		1
#define CSR_VXSAT_MASK		1

/* Supervisor-Level Window to Indirectly Accessed Registers (AIA) */
#define CSR_SISELECT		0x150