From c599dfdfcd37934ae8756f421953ceeb37661a1f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Aug 2018 00:05:23 -0700 Subject: 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 --- src/systemc/core/kernel.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3