commit_impl.hh (2843:19c4c6c2b5b1) commit_impl.hh (2863:2592e056dc5c)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

345 toIEW->commitInfo[i].usedROB = true;
346 toIEW->commitInfo[i].freeROBEntries = rob->numFreeEntries(i);
347 }
348
349 cpu->activityThisCycle();
350}
351
352template <class Impl>
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

345 toIEW->commitInfo[i].usedROB = true;
346 toIEW->commitInfo[i].freeROBEntries = rob->numFreeEntries(i);
347 }
348
349 cpu->activityThisCycle();
350}
351
352template <class Impl>
353void
353bool
354DefaultCommit<Impl>::drain()
355{
356 drainPending = true;
354DefaultCommit<Impl>::drain()
355{
356 drainPending = true;
357
358 // If it's already drained, return true.
359 if (rob->isEmpty() && !iewStage->hasStoresToWB()) {
360 cpu->signalDrained();
361 return true;
362 }
363
364 return false;
357}
358
359template <class Impl>
360void
361DefaultCommit<Impl>::switchOut()
362{
363 switchedOut = true;
364 drainPending = false;

--- 920 unchanged lines hidden ---
365}
366
367template <class Impl>
368void
369DefaultCommit<Impl>::switchOut()
370{
371 switchedOut = true;
372 drainPending = false;

--- 920 unchanged lines hidden ---