Skip to content

Commit 1d91224

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

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/riscv/include/uapi/asm/vendor/sifive.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
#define RISCV_HWPROBE_VENDOR_EXT_XSFVQMACCDOD (1 << 0)
44
#define RISCV_HWPROBE_VENDOR_EXT_XSFVQMACCQOQ (1 << 1)
5+
#define RISCV_HWPROBE_VENDOR_EXT_XSFVFNRCLIPXFQF (1 << 2)

arch/riscv/kernel/vendor_extensions/sifive_hwprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ void hwprobe_isa_vendor_ext_sifive_0(struct riscv_hwprobe *pair, const struct cp
1616
riscv_isa_vendor_ext_list_sifive.per_hart_isa_bitmap, {
1717
VENDOR_EXT_KEY(XSFVQMACCDOD);
1818
VENDOR_EXT_KEY(XSFVQMACCQOQ);
19+
VENDOR_EXT_KEY(XSFVFNRCLIPXFQF);
1920
});
2021
}

0 commit comments

Comments
 (0)