Skip to content

Commit e84fffe

Browse files
cyanyang-sifivepalmer-dabbelt
authored andcommitted
riscv: Add SiFive xsfvfnrclipxfqf vendor extension
Add SiFive vendor extension "xsfvfnrclipxfqf" support to the kernel. Signed-off-by: Cyan Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent a5a15e0 commit e84fffe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/riscv/include/asm/vendor_extensions/sifive.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#define RISCV_ISA_VENDOR_EXT_XSFVQMACCDOD 0
1010
#define RISCV_ISA_VENDOR_EXT_XSFVQMACCQOQ 1
11+
#define RISCV_ISA_VENDOR_EXT_XSFVFNRCLIPXFQF 2
1112

1213
extern struct riscv_isa_vendor_ext_data_list riscv_isa_vendor_ext_list_sifive;
1314

arch/riscv/kernel/vendor_extensions/sifive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/* All SiFive vendor extensions supported in Linux */
1111
const struct riscv_isa_ext_data riscv_isa_vendor_ext_sifive[] = {
12+
__RISCV_ISA_EXT_DATA(xsfvfnrclipxfqf, RISCV_ISA_VENDOR_EXT_XSFVFNRCLIPXFQF),
1213
__RISCV_ISA_EXT_DATA(xsfvqmaccdod, RISCV_ISA_VENDOR_EXT_XSFVQMACCDOD),
1314
__RISCV_ISA_EXT_DATA(xsfvqmaccqoq, RISCV_ISA_VENDOR_EXT_XSFVQMACCQOQ),
1415
};

0 commit comments

Comments
 (0)