Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/12442

Change subject: systemc: Track the module who's end_of_elaboration callback we're in.
......................................................................

systemc: Track the module who's end_of_elaboration callback we're in.

Change-Id: Ib5fe3232cfea26df0c3396c583fd80da429cbdd5
---
M src/systemc/core/kernel.cc
1 file changed, 2 insertions(+), 0 deletions(-)



diff --git a/src/systemc/core/kernel.cc b/src/systemc/core/kernel.cc
index 24d9f22..fd51b4c 100644
--- a/src/systemc/core/kernel.cc
+++ b/src/systemc/core/kernel.cc
@@ -103,12 +103,14 @@

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


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12442
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: Ib5fe3232cfea26df0c3396c583fd80da429cbdd5
Gerrit-Change-Number: 12442
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to