Skip to content

Commit

Permalink
Merge pull request #2204 from silabs-hfegran/dev_hf_hpmcounter_fix
Browse files Browse the repository at this point in the history
Updated hpmcounter tests to account for csr stall optimizations
  • Loading branch information
silabs-robin authored Sep 18, 2023
2 parents 1952d64 + e0aa57c commit 18cafe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main(int argc, char *argv[])
printf("\nminstret count = %d\n", minstret);
err_cnt += chck(minstret, 4);
printf("\nMCYCLE counted cycles = %d\n", mcycle_count);
err_cnt += chck(mcycle_count, 6);
err_cnt += chck(mcycle_count, 5);

//////////////////////////////////////////////////////////////
// IF_INVALID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main(int argc, char *argv[])
printf("\nminstret count = %d\n", minstret);
err_cnt += chck(minstret, 4);
printf("\nMCYCLE counted cycles = %d\n", mcycle_count);
err_cnt += chck_with_pos_margin(mcycle_count, 6, 4*MAX_STALL_CYCLES);
err_cnt += chck_with_pos_margin(mcycle_count, 5, 4*MAX_STALL_CYCLES);

//////////////////////////////////////////////////////////////
// IF_INVALID
Expand Down

0 comments on commit 18cafe7

Please sign in to comment.