Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable all possible leon3 bare-metal tests #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions utils/grlib/software/leon3/leon3_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,28 @@ leon3_test(int domp, int *irqmp, int mtest)
/* report_test(TEST_REG); */
/* if (regtest()) report_fail(FAIL_REG); */

/* report_test(TEST_MUL); */
/* multest(); */
report_test(TEST_MUL);
multest();
if (!pid) printf("Finished multest.\n");

/* report_test(TEST_DIV); */
/* divtest(); */
report_test(TEST_DIV);
divtest();
if (!pid) printf("Finished divtest.\n");

/* //report_test(TEST_FPU); */
/* //fputest(); */

/* report_test(TEST_FILL_W); */
/* cache_fill(4, ncpu, WORD); */
if (!pid) data_structures_setup();

report_test(TEST_FILL_B);
cache_fill(L2_WAYS, ncpu, BYTE);
if (!pid) printf("Finished cache_fill with BYTE granularity.\n");
report_test(TEST_FILL_HW);
cache_fill(L2_WAYS, ncpu, HALFWORD);
if (!pid) printf("Finished cache_fill with HALFWORD granularity.\n");
report_test(TEST_FILL_W);
cache_fill(L2_WAYS, ncpu, WORD);
if (!pid) printf("Finished cache_fill with WORD granularity.\n");

report_test(TEST_SHARING);
false_sharing(20, ncpu);
Expand All @@ -54,12 +65,15 @@ leon3_test(int domp, int *irqmp, int mtest)

report_test(TEST_LOCK);
test_lock(100, ncpu);
if (!pid) printf("Finished test_lock.\n");

/* report_test(TEST_MESI); */
/* mesi_test(ncpu, 1); */
report_test(TEST_MESI);
mesi_test(ncpu, 1);
if (!pid) printf("Finished mesi_test.\n");

/* report_test(TEST_RAND_RW); */
/* rand_rw(200, ncpu); */
report_test(TEST_RAND_RW);
rand_rw(200, ncpu);
if (!pid) printf("Finished rand_rw.\n");

/* End of TESTS */

Expand Down