Call cm_cexit() to prevent the simulator running when d_process initialization errors occur.

This commit is contained in:
Brian Taylor 2023-10-19 08:31:37 -07:00 committed by Holger Vogt
parent 21761207bc
commit c83d11c9c0
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,10 @@ MODIFICATIONS
14 October 2023 Brian Taylor
Use cm_message_send() to report errors, avoid exit(1) calls.
18 October 2023 Brian Taylor
Use cm_cexit() to halt simulation after fatal errors.
Cleanup (terminate) Windows child processes.
REFERENCED FILES
@ -385,6 +389,7 @@ void cm_d_process(ARGS)
else {
local_process = STATIC_VAR(process);
if (local_process->error_count > 0) {
cm_cexit(1);
return;
}
clk = (Digital_State_t *) cm_event_get_ptr(0,0);