Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/15061

Change subject: systemc: Add an elaboration_done method to sc_simcontext.
......................................................................

systemc: Add an elaboration_done method to sc_simcontext.

The TLM headers rely on this non-standard function.

Change-Id: Iaedec35f1f363dcf3e1fcdb58a74eb2cdc05ddc0
---
M src/systemc/core/sc_simcontext.cc
M src/systemc/ext/core/sc_simcontext.hh
2 files changed, 9 insertions(+), 0 deletions(-)



diff --git a/src/systemc/core/sc_simcontext.cc b/src/systemc/core/sc_simcontext.cc
index f8cf3eb..4e13038 100644
--- a/src/systemc/core/sc_simcontext.cc
+++ b/src/systemc/core/sc_simcontext.cc
@@ -77,6 +77,12 @@
         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 4beb8b7..ce4e8f8 100644
--- a/src/systemc/ext/core/sc_simcontext.hh
+++ b/src/systemc/ext/core/sc_simcontext.hh
@@ -44,6 +44,9 @@
     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();

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/15061
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Iaedec35f1f363dcf3e1fcdb58a74eb2cdc05ddc0
Gerrit-Change-Number: 15061
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to