Call cm_cexit() to prevent the simulator running when d_process initialization errors occur.
This commit is contained in:
parent
21761207bc
commit
c83d11c9c0
|
|
@ -93,6 +93,10 @@ MODIFICATIONS
|
||||||
14 October 2023 Brian Taylor
|
14 October 2023 Brian Taylor
|
||||||
Use cm_message_send() to report errors, avoid exit(1) calls.
|
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
|
REFERENCED FILES
|
||||||
|
|
||||||
|
|
@ -385,6 +389,7 @@ void cm_d_process(ARGS)
|
||||||
else {
|
else {
|
||||||
local_process = STATIC_VAR(process);
|
local_process = STATIC_VAR(process);
|
||||||
if (local_process->error_count > 0) {
|
if (local_process->error_count > 0) {
|
||||||
|
cm_cexit(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clk = (Digital_State_t *) cm_event_get_ptr(0,0);
|
clk = (Digital_State_t *) cm_event_get_ptr(0,0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue