arm64: KVM: use separate tables for AArch32 32 and 64bit traps
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 24 Apr 2014 13:11:48 +0000 (14:11 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 11 Jul 2014 11:57:45 +0000 (04:57 -0700)
commita9866ba0cddfc497335fa02a175c4578b96722ff
treee5eeca5f3808ae9ba830a4b2fc8fd185cc26a552
parent72564016aae45f42e488f926bc803f9a2e1c771c
arm64: KVM: use separate tables for AArch32 32 and 64bit traps

An interesting "feature" of the CP14 encoding is that there is
an overlap between 32 and 64bit registers, meaning they cannot
live in the same table as we did for CP15.

Create separate tables for 64bit CP14 and CP15 registers, and
let the top level handler use the right one.

Reviewed-by: Anup Patel <anup.patel@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/sys_regs.c