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; --- 805 unchanged lines hidden (view full) --- 814 } 815} 816 817template <class Impl> 818unsigned int 819FullO3CPU<Impl>::drain(Event *drain_event) 820{ 821 DPRINTF(O3CPU, "Switching out\n"); |
822 823 // If the CPU isn't doing anything, then return immediately. 824 if (_status == Idle || _status == SwitchedOut) { 825 return 0; 826 } 827 |
828 drainCount = 0; 829 fetch.drain(); 830 decode.drain(); 831 rename.drain(); 832 iew.drain(); 833 commit.drain(); 834 835 // Wake the CPU and record activity so everything can drain out if --- 618 unchanged lines hidden --- |