Change runtime to exit() instead of abort(), unless under +verilated+debug.

This commit is contained in:
Wilson Snyder
2025-08-05 18:43:29 -04:00
parent 06c570e159
commit fbaff52668
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -168,7 +168,12 @@ void vl_fatal(const char* filename, int linenum, const char* hier, const char* m
// Callbacks prior to termination
Verilated::runExitCallbacks();
std::abort();
if (Verilated::debug()) {
std::abort();
} else {
std::exit(1);
}
}
#endif