> On Jan. 31, 2017, 4:14 p.m., Jason Lowe-Power wrote: > > How does this relate to init/initState/startup for SimObjects > > (http://gem5.org/SimObject_Initialization)? I'm not very familiar with the > > System-C bindings. Does this object live fully in the System-C world?
Yes, this object is a pure SystemC object. It derives from Gem5SystemC::Module defined in util/systemc/sc_module.hh which in turn is a sc_module (or sc_channel with patch 3774). SystemC has a buit-in mechanism for callbacks before and after the SystemC-simulation. However, I find it very useful to have hooks at the beginning and end of the gem5 simulation in SystemC. - Christian ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.gem5.org/r/3799/#review9356 ----------------------------------------------------------- On Jan. 31, 2017, 10:58 a.m., Christian Menard wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviews.gem5.org/r/3799/ > ----------------------------------------------------------- > > (Updated Jan. 31, 2017, 10:58 a.m.) > > > Review request for Default. > > > Repository: gem5 > > > Description > ------- > > Changeset 11803:ee5f72396d89 > --------------------------- > misc: Clean up and complete the gem5<->SystemC-TLM bridge [10/6] > > The current TLM bridge only provides a Slave Port that allows the gem5 world > to > send request to the SystemC world. This patch series refractors and cleans up > the existing code, and adds a Master Port that allows the SystemC world to > send > requests to the gem5 world. > > This patch: > * Add callbacks for the Gem5SimControl that are called at before and after > simulate() > > > Diffs > ----- > > util/tlm/sim_control.hh PRE-CREATION > util/tlm/sim_control.cc PRE-CREATION > > Diff: http://reviews.gem5.org/r/3799/diff/ > > > Testing > ------- > > > Thanks, > > Christian Menard > > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
