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 <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
This commit is contained in:
Gabe Black
2018-12-10 23:19:56 -08:00
parent 32e20b3ceb
commit b890b47181
2 changed files with 9 additions and 0 deletions

View File

@@ -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()
{

View File

@@ -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();