Skip to content

Commit 2d36fe8

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
riscv: Add ISA extension parsing for Ziccrse
Add support to parse the Ziccrse string in the riscv,isa string. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Andrea Parri <parri.andrea@gmail.com> Link: https://lore.kernel.org/r/20241103145153.105097-12-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 22c3332 commit 2d36fe8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/riscv/include/asm/hwcap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
#define RISCV_ISA_EXT_ZAWRS 85
9595
#define RISCV_ISA_EXT_SVVPTC 86
9696
#define RISCV_ISA_EXT_ZABHA 87
97+
#define RISCV_ISA_EXT_ZICCRSE 88
9798

9899
#define RISCV_ISA_EXT_XLINUXENVCFG 127
99100

arch/riscv/kernel/cpufeature.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = {
314314
riscv_ext_zicbom_validate),
315315
__RISCV_ISA_EXT_SUPERSET_VALIDATE(zicboz, RISCV_ISA_EXT_ZICBOZ, riscv_xlinuxenvcfg_exts,
316316
riscv_ext_zicboz_validate),
317+
__RISCV_ISA_EXT_DATA(ziccrse, RISCV_ISA_EXT_ZICCRSE),
317318
__RISCV_ISA_EXT_DATA(zicntr, RISCV_ISA_EXT_ZICNTR),
318319
__RISCV_ISA_EXT_DATA(zicond, RISCV_ISA_EXT_ZICOND),
319320
__RISCV_ISA_EXT_DATA(zicsr, RISCV_ISA_EXT_ZICSR),

0 commit comments

Comments
 (0)