summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/hwcap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-06-18 20:10:54 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2019-06-25 15:21:41 +0200
commit1201937491822b61641c1878ebcd16a93aed4540 (patch)
treedd42f26ddbc06125c9aad5dbe6ba438678c459ab /arch/arm64/include/asm/hwcap.h
parentarm64: defconfig: enable CONFIG_RANDOMIZE_BASE (diff)
downloadlinux-1201937491822b61641c1878ebcd16a93aed4540.tar.xz
linux-1201937491822b61641c1878ebcd16a93aed4540.zip
arm64: Expose ARMv8.5 CondM capability to userspace
ARMv8.5 adds new instructions XAFLAG and AXFLAG to translate the representation of the results of floating point comparisons between the native ARM format and an alternative format used by some software. Add a hwcap allowing userspace to determine if they are present, since we referred to earlier CondM extensions as FLAGM call these extensions FLAGM2. Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/hwcap.h')
-rw-r--r--arch/arm64/include/asm/hwcap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
index b4bfb6672168..838c47f90389 100644
--- a/arch/arm64/include/asm/hwcap.h
+++ b/arch/arm64/include/asm/hwcap.h
@@ -95,6 +95,7 @@
#define KERNEL_HWCAP_SVEBITPERM __khwcap2_feature(SVEBITPERM)
#define KERNEL_HWCAP_SVESHA3 __khwcap2_feature(SVESHA3)
#define KERNEL_HWCAP_SVESM4 __khwcap2_feature(SVESM4)
+#define KERNEL_HWCAP_FLAGM2 __khwcap2_feature(FLAGM2)
/*
* This yields a mask that user programs can use to figure out what