pipeline.cc (10913:38dbdeea7f1f) pipeline.cc (11567:560d7fbbddd1)
1/*
2 * Copyright (c) 2013-2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 173 unchanged lines hidden (view full) ---

182
183MinorCPU::MinorCPUPort &
184Pipeline::getDataPort()
185{
186 return execute.getDcachePort();
187}
188
189void
1/*
2 * Copyright (c) 2013-2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 173 unchanged lines hidden (view full) ---

182
183MinorCPU::MinorCPUPort &
184Pipeline::getDataPort()
185{
186 return execute.getDcachePort();
187}
188
189void
190Pipeline::wakeupFetch()
190Pipeline::wakeupFetch(ThreadID tid)
191{
191{
192 execute.wakeupFetch();
192 fetch1.wakeupFetch(tid);
193}
194
195bool
196Pipeline::drain()
197{
198 DPRINTF(MinorCPU, "Draining pipeline by halting inst fetches. "
199 " Execution should drain naturally\n");
200

--- 6 unchanged lines hidden (view full) ---

207
208 return drained;
209}
210
211void
212Pipeline::drainResume()
213{
214 DPRINTF(Drain, "Drain resume\n");
193}
194
195bool
196Pipeline::drain()
197{
198 DPRINTF(MinorCPU, "Draining pipeline by halting inst fetches. "
199 " Execution should drain naturally\n");
200

--- 6 unchanged lines hidden (view full) ---

207
208 return drained;
209}
210
211void
212Pipeline::drainResume()
213{
214 DPRINTF(Drain, "Drain resume\n");
215
216 for (ThreadID tid = 0; tid < cpu.numThreads; tid++) {
217 fetch1.wakeupFetch(tid);
218 }
219
215 execute.drainResume();
216}
217
218bool
219Pipeline::isDrained()
220{
221 bool fetch1_drained = fetch1.isDrained();
222 bool fetch2_drained = fetch2.isDrained();

--- 28 unchanged lines hidden ---
220 execute.drainResume();
221}
222
223bool
224Pipeline::isDrained()
225{
226 bool fetch1_drained = fetch1.isDrained();
227 bool fetch2_drained = fetch2.isDrained();

--- 28 unchanged lines hidden ---