From f245dc8d96bc19c19d197664886a8eaedecf938f Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 10 Dec 2007 14:53:10 -0800 Subject: [PATCH] Do not run the first time step if the compilation failed. This patch fixes another minor problem introduced by the process end of simulation events. Specifically if the compilation has indicated we should not run do not even start the main event loop. --- vvp/schedule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/schedule.cc b/vvp/schedule.cc index 955bae80e..bbc088b21 100644 --- a/vvp/schedule.cc +++ b/vvp/schedule.cc @@ -618,7 +618,7 @@ void schedule_simulate(void) signals_capture(); - while (sched_list) { + if (schedule_runnable) while (sched_list) { if (schedule_stopped_flag) { schedule_stopped_flag = false;