]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda4d5db42ce256a4b2ae38938ddf0f408713d30a
tree27d104ccefa7cfde3f8c9d1c1d6e705432be77ac
parent4025780acf141daae1165b82d4170759eea3b74c
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