Skip to content

Commit ad51845

Browse files
broonieoupton
authored andcommitted
KVM: selftests: arm64: Correct feature test for S1PIE in get-reg-list
The ID register for S1PIE is ID_AA64MMFR3_EL1.S1PIE which is bits 11:8 but get-reg-list uses a shift of 4, checking SCTLRX instead. Use a shift of 8 instead. Fixes: 5f0419a ("KVM: selftests: get-reg-list: add Permission Indirection registers") Signed-off-by: Mark Brown <[email protected]> Reviewed-by: Joey Gouly <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 7e814a2 commit ad51845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/kvm/aarch64/get-reg-list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ static struct feature_id_reg feat_id_regs[] = {
3232
{
3333
ARM64_SYS_REG(3, 0, 10, 2, 2), /* PIRE0_EL1 */
3434
ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */
35-
4,
35+
8,
3636
1
3737
},
3838
{
3939
ARM64_SYS_REG(3, 0, 10, 2, 3), /* PIR_EL1 */
4040
ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */
41-
4,
41+
8,
4242
1
4343
}
4444
};

0 commit comments

Comments
 (0)