summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/uapi/asm/hwprobe.h
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2023-12-20 16:57:22 +0100
committerPalmer Dabbelt <palmer@rivosinc.com>2024-01-09 20:12:30 -0800
commit3359866b40a97038405c72e68097a92a4a9caa71 (patch)
tree1f340644fe62f46a5c295e38c25e2a5dd372f820 /arch/riscv/include/uapi/asm/hwprobe.h
parent154a3706122978eeb34d8223d49285ed4f3c61fa (diff)
downloadlinux-stable-3359866b40a97038405c72e68097a92a4a9caa71.tar.gz
linux-stable-3359866b40a97038405c72e68097a92a4a9caa71.tar.bz2
linux-stable-3359866b40a97038405c72e68097a92a4a9caa71.zip
riscv: hwprobe: export Zicond extension
Export the zicond extension to userspace using hwprobe. Signed-off-by: Clément Léger <cleger@rivosinc.com> Link: https://lore.kernel.org/r/20231220155723.684081-7-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/uapi/asm/hwprobe.h')
-rw-r--r--arch/riscv/include/uapi/asm/hwprobe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h
index ac65bb43c8e7..fd7af0dddb12 100644
--- a/arch/riscv/include/uapi/asm/hwprobe.h
+++ b/arch/riscv/include/uapi/asm/hwprobe.h
@@ -58,6 +58,7 @@ struct riscv_hwprobe {
#define RISCV_HWPROBE_EXT_ZFA (1ULL << 32)
#define RISCV_HWPROBE_EXT_ZTSO (1ULL << 33)
#define RISCV_HWPROBE_EXT_ZACAS (1ULL << 34)
+#define RISCV_HWPROBE_EXT_ZICOND (1ULL << 35)
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
#define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)