Skip to content

Commit ec876f4

Browse files
author
Marc Zyngier
committed
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: 3e8a8a5 ("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>
1 parent 7876320 commit ec876f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm/kvm/coproc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,15 @@ static const struct coproc_reg cp15_regs[] = {
478478

479479
/* ICC_SGI1R */
480480
{ CRm64(12), Op1( 0), is64, access_gic_sgi},
481-
/* ICC_ASGI1R */
482-
{ CRm64(12), Op1( 1), is64, access_gic_sgi},
483-
/* ICC_SGI0R */
484-
{ CRm64(12), Op1( 2), is64, access_gic_sgi},
485481

486482
/* VBAR: swapped by interrupt.S. */
487483
{ CRn(12), CRm( 0), Op1( 0), Op2( 0), is32,
488484
NULL, reset_val, c12_VBAR, 0x00000000 },
489485

486+
/* ICC_ASGI1R */
487+
{ CRm64(12), Op1( 1), is64, access_gic_sgi},
488+
/* ICC_SGI0R */
489+
{ CRm64(12), Op1( 2), is64, access_gic_sgi},
490490
/* ICC_SRE */
491491
{ CRn(12), CRm(12), Op1( 0), Op2(5), is32, access_gic_sre },
492492

0 commit comments

Comments
 (0)