summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/sc_simcontext.cc6
-rw-r--r--src/systemc/ext/core/sc_simcontext.hh3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/systemc/core/sc_simcontext.cc b/src/systemc/core/sc_simcontext.cc
index f8cf3eb44..4e1303890 100644
--- a/src/systemc/core/sc_simcontext.cc
+++ b/src/systemc/core/sc_simcontext.cc
@@ -77,6 +77,12 @@ sc_simcontext::next_object()
return nullptr;
}
+bool
+sc_simcontext::elaboration_done()
+{
+ return ::sc_gem5::scheduler.elaborationDone();
+}
+
sc_simcontext *
sc_get_curr_simcontext()
{
diff --git a/src/systemc/ext/core/sc_simcontext.hh b/src/systemc/ext/core/sc_simcontext.hh
index 4beb8b73e..ce4e8f830 100644
--- a/src/systemc/ext/core/sc_simcontext.hh
+++ b/src/systemc/ext/core/sc_simcontext.hh
@@ -44,6 +44,9 @@ class sc_simcontext
sc_curr_proc_handle get_curr_proc_info();
sc_object *first_object();
sc_object *next_object();
+
+ // Used by TLM.
+ bool elaboration_done();
};
sc_simcontext *sc_get_curr_simcontext();