summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/uapi/asm
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2024-06-19 13:35:19 +0200
committerPalmer Dabbelt <palmer@rivosinc.com>2024-06-26 07:54:53 -0700
commit0ad70db5eb21e50ed693fa274bea0346de453e29 (patch)
treeb540479a8f474a15a46799a5274cc334fe9d3808 /arch/riscv/include/uapi/asm
parentba4cd855839daa2e13f251b2e9db28e5b03b5f40 (diff)
downloadlinux-stable-0ad70db5eb21e50ed693fa274bea0346de453e29.tar.gz
linux-stable-0ad70db5eb21e50ed693fa274bea0346de453e29.tar.bz2
linux-stable-0ad70db5eb21e50ed693fa274bea0346de453e29.zip
riscv: hwprobe: export Zca, Zcf, Zcd and Zcb ISA extensions
Export Zca, Zcf, Zcd and Zcb ISA extension through hwprobe. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Link: https://lore.kernel.org/r/20240619113529.676940-10-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/uapi/asm')
-rw-r--r--arch/riscv/include/uapi/asm/hwprobe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h
index 538c404938e6..c38f3f2b8382 100644
--- a/arch/riscv/include/uapi/asm/hwprobe.h
+++ b/arch/riscv/include/uapi/asm/hwprobe.h
@@ -66,6 +66,10 @@ struct riscv_hwprobe {
#define RISCV_HWPROBE_EXT_ZVE64F (1ULL << 40)
#define RISCV_HWPROBE_EXT_ZVE64D (1ULL << 41)
#define RISCV_HWPROBE_EXT_ZIMOP (1ULL << 42)
+#define RISCV_HWPROBE_EXT_ZCA (1ULL << 43)
+#define RISCV_HWPROBE_EXT_ZCB (1ULL << 44)
+#define RISCV_HWPROBE_EXT_ZCD (1ULL << 45)
+#define RISCV_HWPROBE_EXT_ZCF (1ULL << 46)
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
#define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)