Skip to content

Commit

Permalink
updated riscv_test case for simx and rtlsim drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelJSr committed Oct 9, 2024
1 parent 0b3f423 commit 3334f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions sim/rtlsim/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,5 @@ int main(int argc, char **argv) {
// read exitcode from @MPM.1
ram.read(&exitcode, (IO_MPM_ADDR + 8), 4);

if (riscv_test) {
return (1 - exitcode);
}
return exitcode;
return (riscv_test ? 13 - exitcode : exitcode);
}
5 changes: 1 addition & 4 deletions sim/simx/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,5 @@ int main(int argc, char **argv) {
ram.read(&exitcode, (IO_MPM_ADDR + 8), 4);
}

if (riscv_test) {
return (13 - exitcode); // temporary fix for riscv vector tests
}
return exitcode;
return (riscv_test ? 13 - exitcode : exitcode);
}

0 comments on commit 3334f53

Please sign in to comment.