systemc: Track the module who's end_of_elaboration callback we're in.
Change-Id: Ib5fe3232cfea26df0c3396c583fd80da429cbdd5 Reviewed-on: https://gem5-review.googlesource.com/c/12442 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -103,12 +103,14 @@ Kernel::regStats()
|
||||
|
||||
status(::sc_core::SC_END_OF_ELABORATION);
|
||||
for (auto m: sc_gem5::allModules) {
|
||||
callbackModule(m);
|
||||
m->sc_mod()->end_of_elaboration();
|
||||
for (auto p: m->ports)
|
||||
p->end_of_elaboration();
|
||||
for (auto e: m->exports)
|
||||
e->end_of_elaboration();
|
||||
}
|
||||
callbackModule(nullptr);
|
||||
for (auto c: sc_gem5::allChannels)
|
||||
c->sc_chan()->end_of_elaboration();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user