diff --git a/cv32e40s/tests/programs/custom/hpmcounter_basic_nostall_test/hpmcounter_basic_nostall_test.c b/cv32e40s/tests/programs/custom/hpmcounter_basic_nostall_test/hpmcounter_basic_nostall_test.c index 7068b7da18..ba68d5f4fe 100644 --- a/cv32e40s/tests/programs/custom/hpmcounter_basic_nostall_test/hpmcounter_basic_nostall_test.c +++ b/cv32e40s/tests/programs/custom/hpmcounter_basic_nostall_test/hpmcounter_basic_nostall_test.c @@ -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 diff --git a/cv32e40s/tests/programs/custom/hpmcounter_basic_test/hpmcounter_basic_test.c b/cv32e40s/tests/programs/custom/hpmcounter_basic_test/hpmcounter_basic_test.c index 75b1b90af9..1287b08c63 100644 --- a/cv32e40s/tests/programs/custom/hpmcounter_basic_test/hpmcounter_basic_test.c +++ b/cv32e40s/tests/programs/custom/hpmcounter_basic_test/hpmcounter_basic_test.c @@ -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