Skip to content

Commit 5b4d64a

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: hwprobe: export Ztso ISA extension
Export the Ztso extension to userspace. Signed-off-by: Clément Léger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 1ec9f38 commit 5b4d64a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Documentation/arch/riscv/hwprobe.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ The following keys are defined:
161161
defined in the RISC-V ISA manual starting from commit 056b6ff467c7
162162
("Zfa is ratified").
163163

164+
* :c:macro:`RISCV_HWPROBE_EXT_ZTSO`: The Ztso extension is supported as
165+
defined in the RISC-V ISA manual starting from commit 5618fb5a216b
166+
("Ztso is now ratified.")
167+
164168
* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance
165169
information about the selected set of processors.
166170

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ struct riscv_hwprobe {
5656
#define RISCV_HWPROBE_EXT_ZVFH (1 << 30)
5757
#define RISCV_HWPROBE_EXT_ZVFHMIN (1 << 31)
5858
#define RISCV_HWPROBE_EXT_ZFA (1ULL << 32)
59+
#define RISCV_HWPROBE_EXT_ZTSO (1ULL << 33)
5960
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
6061
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
6162
#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
@@ -174,6 +174,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
174174
EXT_KEY(ZKSH);
175175
EXT_KEY(ZKT);
176176
EXT_KEY(ZIHINTNTL);
177+
EXT_KEY(ZTSO);
177178

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

0 commit comments

Comments
 (0)