summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/systemc/core/kernel.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemc/core/kernel.cc b/src/systemc/core/kernel.cc
index 545901a84..24d9f22b2 100644
--- a/src/systemc/core/kernel.cc
+++ b/src/systemc/core/kernel.cc
@@ -71,6 +71,9 @@ Kernel::init()
if (scMainDone)
return;
+ if (stopAfterCallbacks)
+ fatal("Simulation called sc_stop during elaboration.\n");
+
status(::sc_core::SC_BEFORE_END_OF_ELABORATION);
for (auto m: sc_gem5::allModules) {
callbackModule(m);
@@ -168,9 +171,6 @@ Kernel::stopWork()
endComplete = true;
status(::sc_core::SC_STOPPED);
-
- if (stopAfterCallbacks)
- fatal("Simulation called sc_stop during elaboration.\n");
}
void