Skip to content

Commit fe987e8

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: add ISA extension parsing for Zfa
Add parsing for Zfa ISA extension [1] which were ratified in commit 056b6ff467c7 ("Zfa is ratified") of riscv-isa-manual[2]. Link: https://drive.google.com/file/d/1VT6QIggpb59-8QRV266dEE4T8FZTxGq4/view [1] Link: https://github.com/riscv/riscv-isa-manual/commits/056b6ff467c7 [2] Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Evan Green <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent e11880b commit fe987e8

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
@@ -83,6 +83,7 @@
8383
#define RISCV_ISA_EXT_ZIHINTNTL 68
8484
#define RISCV_ISA_EXT_ZVFH 69
8585
#define RISCV_ISA_EXT_ZVFHMIN 70
86+
#define RISCV_ISA_EXT_ZFA 71
8687

8788
#define RISCV_ISA_EXT_MAX 128
8889
#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(zfa, RISCV_ISA_EXT_ZFA),
262263
__RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH),
263264
__RISCV_ISA_EXT_DATA(zfhmin, RISCV_ISA_EXT_ZFHMIN),
264265
__RISCV_ISA_EXT_DATA(zba, RISCV_ISA_EXT_ZBA),

0 commit comments

Comments
 (0)