1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 89 unchanged lines hidden (view full) --- 98 return; 99 100 for (auto m: sc_gem5::allModules) 101 for (auto p: m->ports) 102 p->_gem5Finalize(); 103 104 status(::sc_core::SC_END_OF_ELABORATION); 105 for (auto m: sc_gem5::allModules) { |
106 callbackModule(m); |
107 m->sc_mod()->end_of_elaboration(); 108 for (auto p: m->ports) 109 p->end_of_elaboration(); 110 for (auto e: m->exports) 111 e->end_of_elaboration(); 112 } |
113 callbackModule(nullptr); |
114 for (auto c: sc_gem5::allChannels) 115 c->sc_chan()->end_of_elaboration(); 116 117 if (stopAfterCallbacks) 118 stopWork(); 119} 120 121void --- 76 unchanged lines hidden --- |