Marc Zyngier d9d7d84d99 KVM: arm64: Parametrize exception entry with a target EL
We currently assume that an exception is delivered to EL1, always.
Once we emulate EL2, this no longer will be the case. To prepare
for this, add a target_mode parameter.

While we're at it, merge the computing of the target PC and PSTATE in
a single function that updates both PC and CPSR after saving their
previous values in the corresponding ELR/SPSR. This ensures that they
are updated in the correct order (a pretty common source of bugs...).

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
2020-05-28 13:16:55 +01:00
..
2020-05-07 00:41:47 +02:00
2020-04-23 16:41:26 +09:00
2020-04-11 11:38:44 -07:00
2020-04-24 10:39:32 -07:00
2020-05-10 11:59:53 -07:00
2020-04-04 10:12:47 -07:00