diff options
author | Marc Zyngier | 2020-04-21 18:32:02 +0100 |
---|---|---|
committer | Marc Zyngier | 2020-05-28 13:16:55 +0100 |
commit | d9d7d84d9906e1bc886c5e0fc66aaad26008264b (patch) | |
tree | c3d9d33afecb36ab5f9ab94c50d66b1103fd3774 /virt/kvm | |
parent | 349c330ced9764667678f4d2804fd4ebc16110c9 (diff) |
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>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions