Skip to content

Commit 74ba42b

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: hwprobe: export Zhintntl ISA extension
Export Zihintntl extension[1] through hwprobe. Link: https://drive.google.com/file/d/13_wsN8YmRfH8YWysFyTX-DjTkCnBd9hj/view [1] 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 eddbfa0 commit 74ba42b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Documentation/arch/riscv/hwprobe.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ The following keys are defined:
146146
* :c:macro:`RISCV_HWPROBE_EXT_ZFHMIN`: The Zfhmin extension version 1.0 is
147147
supported as defined in the RISC-V ISA manual.
148148

149+
* :c:macro:`RISCV_HWPROBE_EXT_ZIHINTNTL`: The Zihintntl extension version 1.0
150+
is supported as defined in the RISC-V ISA manual.
151+
149152
* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance
150153
information about the selected set of processors.
151154

arch/riscv/include/uapi/asm/hwprobe.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ struct riscv_hwprobe {
5252
#define RISCV_HWPROBE_EXT_ZVKT (1 << 26)
5353
#define RISCV_HWPROBE_EXT_ZFH (1 << 27)
5454
#define RISCV_HWPROBE_EXT_ZFHMIN (1 << 28)
55+
#define RISCV_HWPROBE_EXT_ZIHINTNTL (1 << 29)
5556
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
5657
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
5758
#define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)

arch/riscv/kernel/sys_riscv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
173173
EXT_KEY(ZKSED);
174174
EXT_KEY(ZKSH);
175175
EXT_KEY(ZKT);
176+
EXT_KEY(ZIHINTNTL);
176177

177178
if (has_vector()) {
178179
EXT_KEY(ZVBB);

0 commit comments

Comments
 (0)