Skip to content

Commit

Permalink
Fixes #488 : PE Test 21 (#491)
Browse files Browse the repository at this point in the history
- Test checks for all values >= 0b0010

Signed-off-by: Rajat Goyal <[email protected]>
  • Loading branch information
rajatgoyal47 authored Oct 14, 2024
1 parent 3848655 commit f04c500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_pool/pe/operating_system/test_c021.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ static void payload(void)
return;
}

/* Read ID_AA64MMFR1_EL1.HAFDBS[3:0] = 0b0010 For Hardware update supported */
/* Read ID_AA64MMFR1_EL1.HAFDBS[3:0] >= 0b0010 For Hardware update supported */
data = VAL_EXTRACT_BITS(val_pe_reg_read(ID_AA64MMFR1_EL1), 0, 3);

if (data != 2)
if (data < 2)
val_set_status(index, RESULT_FAIL(TEST_NUM, 01));
else
val_set_status(index, RESULT_PASS(TEST_NUM, 01));
Expand Down

0 comments on commit f04c500

Please sign in to comment.