From 77c97b4ee21290f5f083173d957843b615abbff2 Mon Sep 17 00:00:00 2001 From: Suzuki K Poulose Date: Mon, 9 Jan 2017 17:28:31 +0000 Subject: arm64: cpufeature: Expose CPUID registers by emulation This patch adds the hook for emulating MRS instruction to export the 'user visible' value of supported system registers. We emulate only the following id space for system registers: Op0=3, Op1=0, CRn=0, CRm=[0, 4-7] The rest will fall back to SIGILL. This capability is also advertised via a new HWCAP_CPUID. Cc: Catalin Marinas Cc: Mark Rutland Cc: Will Deacon Reviewed-by: Catalin Marinas Signed-off-by: Suzuki K Poulose [will: add missing static keyword to enable_mrs_emulation] Signed-off-by: Will Deacon --- arch/arm64/include/uapi/asm/hwcap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm64/include/uapi/asm/hwcap.h') diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h index a739287ef6a3..773c90b05458 100644 --- a/arch/arm64/include/uapi/asm/hwcap.h +++ b/arch/arm64/include/uapi/asm/hwcap.h @@ -30,5 +30,6 @@ #define HWCAP_ATOMICS (1 << 8) #define HWCAP_FPHP (1 << 9) #define HWCAP_ASIMDHP (1 << 10) +#define HWCAP_CPUID (1 << 11) #endif /* _UAPI__ASM_HWCAP_H */ -- cgit