Re: [PATCH v3 8/9] arm64: cpufeature: Expose CPUID registers by emulation

From: Catalin Marinas
Date: Thu Jan 05 2017 - 13:39:25 EST


On Wed, Jan 04, 2017 at 05:49:06PM +0000, Suzuki K. Poulose wrote:
> 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 <catalin.marinas@xxxxxxx>
> Cc: Mark Rutland <mark.rutland@xxxxxxx>
> Cc: Will Deacon <will.deacon@xxxxxxx>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>

Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>