From: Gabe Black Date: Wed, 29 Aug 2018 07:05:23 +0000 (-0700) Subject: systemc: Track the module who's end_of_elaboration callback we're in. X-Git-Tag: v19.0.0.0~1689 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c599dfdfcd37934ae8756f421953ceeb37661a1f;p=gem5.git 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 Maintainer: Gabe Black --- diff --git a/src/systemc/core/kernel.cc b/src/systemc/core/kernel.cc index 24d9f22b2..fd51b4c52 100644 --- a/src/systemc/core/kernel.cc +++ b/src/systemc/core/kernel.cc @@ -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();