Skip to content

Commit 36f8960

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: hwprobe: export Zimop ISA extension
Export Zimop ISA extension through hwprobe. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 2467c21 commit 36f8960

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
@@ -207,6 +207,10 @@ The following keys are defined:
207207
* :c:macro:`RISCV_HWPROBE_EXT_ZVE64D`: The Vector sub-extension Zve64d is
208208
supported, as defined by version 1.0 of the RISC-V Vector extension manual.
209209

210+
* :c:macro:`RISCV_HWPROBE_EXT_ZIMOP`: The Zimop May-Be-Operations extension is
211+
supported as defined in the RISC-V ISA manual starting from commit
212+
58220614a5f ("Zimop is ratified/1.0").
213+
210214
* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance
211215
information about the selected set of processors.
212216

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ struct riscv_hwprobe {
6565
#define RISCV_HWPROBE_EXT_ZVE64X (1ULL << 39)
6666
#define RISCV_HWPROBE_EXT_ZVE64F (1ULL << 40)
6767
#define RISCV_HWPROBE_EXT_ZVE64D (1ULL << 41)
68+
#define RISCV_HWPROBE_EXT_ZIMOP (1ULL << 42)
6869
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
6970
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
7071
#define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)

arch/riscv/kernel/sys_hwprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
112112
EXT_KEY(ZACAS);
113113
EXT_KEY(ZICOND);
114114
EXT_KEY(ZIHINTPAUSE);
115+
EXT_KEY(ZIMOP);
115116

116117
/*
117118
* All the following extensions must depend on the kernel

0 commit comments

Comments
 (0)