Skip to content

Commit b9a9314

Browse files
charlie-rivospalmer-dabbelt
authored andcommitted
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: Heiko Stuebner <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Signed-off-by: Charlie Jenkins <[email protected]> Tested-by: Yangyu Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 66f1977 commit b9a9314

File tree

1 file changed

+8
-3
lines changed
  • arch/riscv/include/asm

1 file changed

+8
-3
lines changed

arch/riscv/include/asm/csr.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,14 @@
314314
#define CSR_STIMECMP 0x14D
315315
#define CSR_STIMECMPH 0x15D
316316

317-
#define VCSR_VXRM_MASK 3
318-
#define VCSR_VXRM_SHIFT 1
319-
#define VCSR_VXSAT_MASK 1
317+
/* xtheadvector symbolic CSR names */
318+
#define CSR_VXSAT 0x9
319+
#define CSR_VXRM 0xa
320+
321+
/* xtheadvector CSR masks */
322+
#define CSR_VXRM_MASK 3
323+
#define CSR_VXRM_SHIFT 1
324+
#define CSR_VXSAT_MASK 1
320325

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

0 commit comments

Comments
 (0)