arm64: compat: Add condition code checks and IT advance
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 27 Sep 2018 16:15:30 +0000 (17:15 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 1 Oct 2018 12:35:56 +0000 (13:35 +0100)
commit1f1c014035a8084a768e7e902c6f5857995b1220
treeaea5488ddfca9c8b559a89052f821663adb612a5
parent70c63cdfd6ee615714c5453cff370032587723c2
arm64: compat: Add condition code checks and IT advance

Here's a /really nice/ part of the architecture: a CP15 access is
allowed to trap even if it fails its condition check, and SW must
handle it. This includes decoding the IT state if this happens in
am IT block. As a consequence, SW must also deal with advancing
the IT state machine.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c