arm64: esr: Add ESR exception class encoding for trapped ERET
authorWill Deacon <will@kernel.org>
Tue, 16 Jul 2019 07:14:19 +0000 (08:14 +0100)
committerWill Deacon <will@kernel.org>
Mon, 5 Aug 2019 10:06:34 +0000 (11:06 +0100)
commit332e5281a4e8269b96233a7babc98b03596b7e6d
treeec5a3d83d58b8ac53540ce6fff75f08edf4ea9a9
parentb3e089cd446b26bb1e12860e1afb9da314453fd6
arm64: esr: Add ESR exception class encoding for trapped ERET

The ESR.EC encoding of 0b011010 (0x1a) describes an exception generated
by an ERET, ERETAA or ERETAB instruction as a result of a nested
virtualisation trap to EL2.

Add an encoding for this EC and a string description so that we identify
it correctly if we take one unexpectedly.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/traps.c