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 <broonie@kernel.org> Reviewed-by: Joey Gouly <joey.gouly@arm.com> Link: https://lore.kernel.org/r/20240731-kvm-arm64-fix-s1pie-test-v1-1-a9253f3b7db4@kernel.org Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 7e814a2 commit ad51845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)