pipeline.cc (10259:ebb376f73dd2) pipeline.cc (10913:38dbdeea7f1f)
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

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

187}
188
189void
190Pipeline::wakeupFetch()
191{
192 execute.wakeupFetch();
193}
194
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

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

187}
188
189void
190Pipeline::wakeupFetch()
191{
192 execute.wakeupFetch();
193}
194
195unsigned int
196Pipeline::drain(DrainManager *manager)
195bool
196Pipeline::drain()
197{
198 DPRINTF(MinorCPU, "Draining pipeline by halting inst fetches. "
199 " Execution should drain naturally\n");
200
201 execute.drain();
202
203 /* Make sure that needToSignalDrained isn't accidentally set if we
204 * are 'pre-drained' */
205 bool drained = isDrained();
206 needToSignalDrained = !drained;
207
197{
198 DPRINTF(MinorCPU, "Draining pipeline by halting inst fetches. "
199 " Execution should drain naturally\n");
200
201 execute.drain();
202
203 /* Make sure that needToSignalDrained isn't accidentally set if we
204 * are 'pre-drained' */
205 bool drained = isDrained();
206 needToSignalDrained = !drained;
207
208 return (drained ? 0 : 1);
208 return drained;
209}
210
211void
212Pipeline::drainResume()
213{
214 DPRINTF(Drain, "Drain resume\n");
215 execute.drainResume();
216}

--- 34 unchanged lines hidden ---
209}
210
211void
212Pipeline::drainResume()
213{
214 DPRINTF(Drain, "Drain resume\n");
215 execute.drainResume();
216}

--- 34 unchanged lines hidden ---