There was an error while loading. Please reload this page.
2 parents f3652f3 + 76a2ac8 commit 91134adCopy full SHA for 91134ad
chpsim.cc
@@ -1386,6 +1386,8 @@ int ChpSim::Step (Event *ev)
1386
}
1387
1388
warning ("%s", stream.str().c_str());
1389
+ if (glob_sim->onWarning() == 1) { _breakpt = 1; }
1390
+ else if (glob_sim->onWarning() == 2) { exit(2); };
1391
1392
1393
else if (strcmp (stmt->u.fn.name, "assert") == 0) {
@@ -1426,7 +1428,8 @@ int ChpSim::Step (Event *ev)
1426
1428
if (!condition) {
1427
1429
actsim_log ("\n");
1430
actsim_log_flush ();
- _breakpt = 1;
1431
+ if (glob_sim->onWarning() == 0 || glob_sim->onWarning() == 1) { _breakpt = 1; }
1432
1433
1434
1435
else if (strcmp (stmt->u.fn.name, "log_nl") == 0) {
0 commit comments