Gabe Black has submitted this change and it was merged. (
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
Reviewed-on: https://gem5-review.googlesource.com/c/15061
Reviewed-by: Anthony Gutierrez <[email protected]>
Maintainer: Anthony Gutierrez <[email protected]>
---
M src/systemc/core/sc_simcontext.cc
M src/systemc/ext/core/sc_simcontext.hh
2 files changed, 9 insertions(+), 0 deletions(-)
Approvals:
Anthony Gutierrez: Looks good to me, approved; Looks good to me, approved
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: 4
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Anthony Gutierrez <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthias Jung <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev