Skip to content

Commit 1ec9f38

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: add ISA extension parsing for Ztso
Add support to parse the Ztso string in the riscv,isa string. The bindings already supports it but not the ISA parsing code. 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 9726acf commit 1ec9f38

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
@@ -84,6 +84,7 @@
8484
#define RISCV_ISA_EXT_ZVFH 69
8585
#define RISCV_ISA_EXT_ZVFHMIN 70
8686
#define RISCV_ISA_EXT_ZFA 71
87+
#define RISCV_ISA_EXT_ZTSO 72
8788

8889
#define RISCV_ISA_EXT_MAX 128
8990
#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
@@ -279,6 +279,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = {
279279
__RISCV_ISA_EXT_DATA(zkt, RISCV_ISA_EXT_ZKT),
280280
__RISCV_ISA_EXT_DATA(zksed, RISCV_ISA_EXT_ZKSED),
281281
__RISCV_ISA_EXT_DATA(zksh, RISCV_ISA_EXT_ZKSH),
282+
__RISCV_ISA_EXT_DATA(ztso, RISCV_ISA_EXT_ZTSO),
282283
__RISCV_ISA_EXT_SUPERSET(zvbb, RISCV_ISA_EXT_ZVBB, riscv_zvbb_exts),
283284
__RISCV_ISA_EXT_DATA(zvbc, RISCV_ISA_EXT_ZVBC),
284285
__RISCV_ISA_EXT_DATA(zvfh, RISCV_ISA_EXT_ZVFH),

0 commit comments

Comments
 (0)