kernel.cc (13273:af60ddcf2a32) | kernel.cc (13281:faae5b71f567) |
---|---|
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 --- 68 unchanged lines hidden (view full) --- 77 78 status(::sc_core::SC_BEFORE_END_OF_ELABORATION); 79 for (auto p: allPorts) 80 p->sc_port_base()->before_end_of_elaboration(); 81 for (auto m: sc_gem5::allModules) 82 m->beforeEndOfElaboration(); 83 for (auto c: sc_gem5::allChannels) 84 c->sc_chan()->before_end_of_elaboration(); | 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 --- 68 unchanged lines hidden (view full) --- 77 78 status(::sc_core::SC_BEFORE_END_OF_ELABORATION); 79 for (auto p: allPorts) 80 p->sc_port_base()->before_end_of_elaboration(); 81 for (auto m: sc_gem5::allModules) 82 m->beforeEndOfElaboration(); 83 for (auto c: sc_gem5::allChannels) 84 c->sc_chan()->before_end_of_elaboration(); |
85 86 ::sc_gem5::scheduler.elaborationDone(true); |
|
85} 86 87void 88Kernel::regStats() 89{ 90 if (scMainDone || stopAfterCallbacks) 91 return; 92 --- 8 unchanged lines hidden (view full) --- 101 p->sc_port_base()->end_of_elaboration(); 102 for (auto m: sc_gem5::allModules) 103 m->endOfElaboration(); 104 for (auto c: sc_gem5::allChannels) 105 c->sc_chan()->end_of_elaboration(); 106 } catch (...) { 107 ::sc_gem5::scheduler.throwToScMain(); 108 } | 87} 88 89void 90Kernel::regStats() 91{ 92 if (scMainDone || stopAfterCallbacks) 93 return; 94 --- 8 unchanged lines hidden (view full) --- 103 p->sc_port_base()->end_of_elaboration(); 104 for (auto m: sc_gem5::allModules) 105 m->endOfElaboration(); 106 for (auto c: sc_gem5::allChannels) 107 c->sc_chan()->end_of_elaboration(); 108 } catch (...) { 109 ::sc_gem5::scheduler.throwToScMain(); 110 } |
109 110 ::sc_gem5::scheduler.elaborationDone(true); | |
111} 112 113void 114Kernel::startup() 115{ 116 if (scMainDone) 117 return; 118 --- 79 unchanged lines hidden --- | 111} 112 113void 114Kernel::startup() 115{ 116 if (scMainDone) 117 return; 118 --- 79 unchanged lines hidden --- |