We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad44f61 commit d68acaaCopy full SHA for d68acaa
src/sysc/scc/report.cpp
@@ -24,6 +24,7 @@
24
#include <spdlog/sinks/basic_file_sink.h>
25
#include <spdlog/sinks/stdout_color_sinks.h>
26
#include <spdlog/spdlog.h>
27
+#include <sysc/kernel/sc_status.h>
28
#include <tuple>
29
#include <unordered_map>
30
#include <util/logging.h>
@@ -294,7 +295,7 @@ void report_handler(const sc_report& rep, const sc_actions& actions) {
294
295
flush_loggers();
296
} catch(spdlog::spdlog_ex e) {
297
}
- if(sc_is_running() && !sc_stop_called) {
298
+ if((sc_get_status() & (sc_core::SC_START_OF_SIMULATION | SC_RUNNING | SC_PAUSED | SC_SUSPENDED)) && !sc_stop_called) {
299
sc_stop();
300
sc_stop_called = true;
301
0 commit comments