summaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2023-06-07 23:28:31 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-06-21 17:45:19 +0300
commit07edc32779e3dfe164970fc254291258277219c9 (patch)
tree80b70e506f16a268d6d5624a236d652cbfc695b0 /arch/riscv/include
parent1e5cae98e46d15f4dc7c675e1bd0ed2172ea181c (diff)
downloadlinux-07edc32779e3dfe164970fc254291258277219c9.tar.xz
RISC-V: always report presence of extensions formerly part of the base ISA
Of these four extensions, two were part of the base ISA when the port was written and are required by the kernel. The other two are implied when `i` is in riscv,isa on DT systems. There's not much that userspace can do with this extra information, but there is no harm in reporting an ISA string that closer resembles the current versions of the specifications either. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230607-nest-collision-5796b6be8be6@spud Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/hwcap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h
index e0c40a4c63d5..e0eb9ad06805 100644
--- a/arch/riscv/include/asm/hwcap.h
+++ b/arch/riscv/include/asm/hwcap.h
@@ -46,6 +46,10 @@
#define RISCV_ISA_EXT_ZICBOZ 34
#define RISCV_ISA_EXT_SMAIA 35
#define RISCV_ISA_EXT_SSAIA 36
+#define RISCV_ISA_EXT_ZICNTR 37
+#define RISCV_ISA_EXT_ZICSR 38
+#define RISCV_ISA_EXT_ZIFENCEI 39
+#define RISCV_ISA_EXT_ZIHPM 40
#define RISCV_ISA_EXT_MAX 64
#define RISCV_ISA_EXT_NAME_LEN_MAX 32