Deleted Added
sdiff udiff text old ( 2864:eab7ff8f6d72 ) new ( 2867:cc92d58a3210 )
full compact
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;

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

395
396 activityRec.advance();
397
398 if (removeInstsThisCycle) {
399 cleanUpRemovedInsts();
400 }
401
402 if (!tickEvent.scheduled()) {
403 if (_status == SwitchedOut) {
404 // increment stat
405 lastRunningCycle = curTick;
406 } else if (!activityRec.active()) {
407 lastRunningCycle = curTick;
408 timesIdled++;
409 } else {
410 tickEvent.schedule(curTick + cycles(1));
411 }

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

788 commit.resume();
789
790 if (_status == SwitchedOut || _status == Idle)
791 return;
792
793 if (!tickEvent.scheduled())
794 tickEvent.schedule(curTick);
795 _status = Running;
796}
797
798template <class Impl>
799void
800FullO3CPU<Impl>::signalDrained()
801{
802 if (++drainCount == NumStages) {
803 if (tickEvent.scheduled())

--- 538 unchanged lines hidden ---