OSDN Git Service

ARM: KVM: Correctly order SGI register entries in the cp15 array
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 4 Oct 2018 08:35:35 +0000 (09:35 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 9 Oct 2018 10:55:47 +0000 (11:55 +0100)
commitec876f4b252c4084acad259ce3e65ad97f44f040
treef580cd3c4bc0e6476ca6fc7da78c927fedf31edb
parent7876320f88802b22d4e2daf7eb027dd14175a0f8
ARM: KVM: Correctly order SGI register entries in the cp15 array

The ICC_ASGI1R and ICC_SGI0R register entries in the cp15 array
are not correctly ordered, leading to a BUG() at boot time.

Move them to their natural location.

Fixes: 3e8a8a50c7ef ("KVM: arm: vgic-v3: Add support for ICC_SGI0R and ICC_ASGI1R accesses")
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/coproc.c