cpu.cc (3402:db60546818d0) cpu.cc (3512:cefe7f965104)
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");
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
822 drainCount = 0;
823 fetch.drain();
824 decode.drain();
825 rename.drain();
826 iew.drain();
827 commit.drain();
828
829 // Wake the CPU and record activity so everything can drain out if

--- 618 unchanged lines hidden ---
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 ---