diff options
-rw-r--r-- | src/systemc/core/sc_main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemc/core/sc_main.cc b/src/systemc/core/sc_main.cc index ea243bf61..2637cef0e 100644 --- a/src/systemc/core/sc_main.cc +++ b/src/systemc/core/sc_main.cc @@ -225,7 +225,7 @@ sc_stop() if (::sc_gem5::Kernel::status() == SC_STOPPED) return; - if (sc_is_running()) { + if ((sc_get_status() & SC_RUNNING)) { bool finish_delta = (_stop_mode == SC_STOP_FINISH_DELTA); ::sc_gem5::scheduler.scheduleStop(finish_delta); } else { |