]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: sysreg: add Set/Way sys encodings
authorMark Rutland <mark.rutland@arm.com>
Fri, 13 Jan 2017 17:47:46 +0000 (17:47 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 9 Mar 2017 16:55:36 +0000 (16:55 +0000)
commita953ce3a82556f0ff01c9061751e4e62e1aa33db
treea6c94912834117bc93cc5fbd971ebfd449cf6de3
parent4e7ef473d04c9f01793e8bc7d499121bea692e7a
arm64: sysreg: add Set/Way sys encodings

Cache maintenance ops fall in the SYS instruction class, and KVM needs
to handle them. So as to keep all SYS encodings in one place, this
patch adds them to sysreg.h.

The encodings were taken from ARM DDI 0487A.k_iss10775, Table C5-2.

To make it clear that these are instructions rather than registers, and
to allow us to change the way these are handled in future, a new
sys_insn() alias for sys_reg() is added and used for these new
definitions.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/sysreg.h