Skip to content

Commit 188a212

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: add ISA extension parsing for Zacas
Add parsing for Zacas ISA extension which was ratified recently in the riscv-zacas manual. Signed-off-by: Clément Léger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent cd7be4d commit 188a212

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
@@ -85,6 +85,7 @@
8585
#define RISCV_ISA_EXT_ZVFHMIN 70
8686
#define RISCV_ISA_EXT_ZFA 71
8787
#define RISCV_ISA_EXT_ZTSO 72
88+
#define RISCV_ISA_EXT_ZACAS 73
8889

8990
#define RISCV_ISA_EXT_MAX 128
9091
#define RISCV_ISA_EXT_INVALID U32_MAX

arch/riscv/kernel/cpufeature.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = {
259259
__RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL),
260260
__RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE),
261261
__RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM),
262+
__RISCV_ISA_EXT_DATA(zacas, RISCV_ISA_EXT_ZACAS),
262263
__RISCV_ISA_EXT_DATA(zfa, RISCV_ISA_EXT_ZFA),
263264
__RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH),
264265
__RISCV_ISA_EXT_DATA(zfhmin, RISCV_ISA_EXT_ZFHMIN),

0 commit comments

Comments
 (0)