arm64: KVM: Fix wrong use of the CPSR MODE mask for 32bit guests
authorShannon Zhao <shannon.zhao@linaro.org>
Wed, 13 Jan 2016 09:16:39 +0000 (17:16 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Sun, 24 Jan 2016 21:55:59 +0000 (21:55 +0000)
commit9586a2ea6806599c819a9e800581c2a698ef7467
tree27d104ccefa7cfde3f8c9d1c1d6e705432be77ac
parenta7e0ac295d964086af3bf98352614f33c381213e
arm64: KVM: Fix wrong use of the CPSR MODE mask for 32bit guests

The values of CPSR MODE mask are different between aarch32 and aarch64.
It should use the right one according to the execution state.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_emulate.h