Skip to content

Commit

Permalink
Sbsa Mantis 710
Browse files Browse the repository at this point in the history
-PE Test-23 is updated to also check for FEAT_CSV2_3
-The test will pass if either FEAT_CSV2 or FEAT_CSV2_3 is present
-along with FEAT_CSV3 support

Signed-off-by: Ajayswar S <ajayswar.s@arm.com>
Change-Id: Ie09cb9858804f9736a78d011b761b4c5702400ae
  • Loading branch information
ajayswar-s committed Jun 21, 2024
1 parent 74fddaa commit 78690f0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test_pool/pe/operating_system/test_c023.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ static void payload(void)
return;
}

/* ID_AA64PFR0_EL1.CSV2[59:56] = 0b0010 Speculative use of Out of Ctxt Branch Targets */
/* ID_AA64PFR0_EL1.CSV2[59:56] = 0b0010 or 0b0011 indicates Speculative use of Out of
Ctxt Branch Targets and use of SCXTNUM_ELx registers */
/* ID_AA64PFR0_EL1.CSV3[63:60] = 0b0001 Speculative use of Faulting data */
data_csv2 = VAL_EXTRACT_BITS(val_pe_reg_read(ID_AA64PFR0_EL1), 56, 59);
data_csv3 = VAL_EXTRACT_BITS(val_pe_reg_read(ID_AA64PFR0_EL1), 60, 63);

if (data_csv2 != 2)
val_set_status(index, RESULT_FAIL(TEST_NUM, 01));
else if (data_csv3 != 1)
val_set_status(index, RESULT_FAIL(TEST_NUM, 02));
else
val_print_primary_pe(ACS_PRINT_DEBUG, "\n ID_AA64DFR0_EL1.CSV2 = %llx", data_csv2, index);
val_print_primary_pe(ACS_PRINT_DEBUG, "\n ID_AA64DFR0_EL1.CSV3 = %llx", data_csv3, index);

if (((data_csv2 == 2) || (data_csv2 == 3)) && (data_csv3 == 1))
val_set_status(index, RESULT_PASS(TEST_NUM, 01));
else
val_set_status(index, RESULT_FAIL(TEST_NUM, 01));
}

uint32_t c023_entry(uint32_t num_pe)
Expand Down

0 comments on commit 78690f0

Please sign in to comment.