Skip to content

Commit 34e9b16

Browse files
cyanyang-sifivepalmer-dabbelt
authored andcommitted
riscv: Add SiFive xsfvfwmaccqqq vendor extension
Add SiFive vendor extension "xsfvfwmaccqqq" 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 d5ca02b commit 34e9b16

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
@@ -9,6 +9,7 @@
99
#define RISCV_ISA_VENDOR_EXT_XSFVQMACCDOD 0
1010
#define RISCV_ISA_VENDOR_EXT_XSFVQMACCQOQ 1
1111
#define RISCV_ISA_VENDOR_EXT_XSFVFNRCLIPXFQF 2
12+
#define RISCV_ISA_VENDOR_EXT_XSFVFWMACCQQQ 3
1213

1314
extern struct riscv_isa_vendor_ext_data_list riscv_isa_vendor_ext_list_sifive;
1415

arch/riscv/kernel/vendor_extensions/sifive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/* All SiFive vendor extensions supported in Linux */
1111
const struct riscv_isa_ext_data riscv_isa_vendor_ext_sifive[] = {
1212
__RISCV_ISA_EXT_DATA(xsfvfnrclipxfqf, RISCV_ISA_VENDOR_EXT_XSFVFNRCLIPXFQF),
13+
__RISCV_ISA_EXT_DATA(xsfvfwmaccqqq, RISCV_ISA_VENDOR_EXT_XSFVFWMACCQQQ),
1314
__RISCV_ISA_EXT_DATA(xsfvqmaccdod, RISCV_ISA_VENDOR_EXT_XSFVQMACCDOD),
1415
__RISCV_ISA_EXT_DATA(xsfvqmaccqoq, RISCV_ISA_VENDOR_EXT_XSFVQMACCQOQ),
1516
};

0 commit comments

Comments
 (0)