Skip to content

Commit

Permalink
vcs,main: exit on assertion and difftest failures (OpenXiangShan#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense authored May 9, 2021
1 parent 2bd5334 commit 7ebd1b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/csrc/vcs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ extern "C" void simv_init() {
}

extern "C" void simv_step() {
if (difftest_step()) {
if (assert_count > 0 || difftest_step()) {
printf("Difftest error\n");
exit(1);
}
}

0 comments on commit 7ebd1b2

Please sign in to comment.