Skip to content

Commit

Permalink
re-added riscv-vector-tests option to simx
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelJSr committed Oct 7, 2024
1 parent d497c95 commit c3ae793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sim/simx/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ uint32_t num_threads = NUM_THREADS;
uint32_t num_warps = NUM_WARPS;
uint32_t num_cores = NUM_CORES;
bool showStats = false;
bool riscv_test = false;
const char* program = nullptr;

static void parse_args(int argc, char **argv) {
Expand All @@ -54,6 +55,9 @@ static void parse_args(int argc, char **argv) {
case 's':
showStats = true;
break;
case 'r':
riscv_test = true;
break;
case 'h':
show_usage();
exit(0);
Expand Down Expand Up @@ -121,5 +125,5 @@ int main(int argc, char **argv) {
ram.read(&exitcode, (IO_MPM_ADDR + 8), 4);
}

return exitcode;
return exitcode if not riscv_test else (1 - exitcode);
}

0 comments on commit c3ae793

Please sign in to comment.