Deleted Added
sdiff udiff text old ( 2667:fe64b8353b1c ) new ( 3125:febd811bccc6 )
full compact
1/*
2 * Copyright (c) 2000-2005 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;

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

41#include <algorithm>
42#include <map>
43#include <string>
44#include <vector>
45
46#include "sim/host.hh" // for Tick
47
48#include "base/fast_alloc.hh"
49#include "base/trace.hh"
50#include "sim/serialize.hh"
51
52class EventQueue; // forward declaration
53
54//////////////////////
55//
56// Main Event Queue

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

130
131 /// Default is zero for historical reasons.
132 Default_Pri = 0,
133
134 /// CPU switches schedule the new CPU's tick event for the
135 /// same cycle (after unscheduling the old CPU's tick event).
136 /// The switch needs to come before any tick events to make
137 /// sure we don't tick both CPUs in the same cycle.
138 CPU_Switch_Pri = 31,
139
140 /// Serailization needs to occur before tick events also, so
141 /// that a serialize/unserialize is identical to an on-line
142 /// CPU switch.
143 Serialize_Pri = 32,
144
145 /// CPU ticks must come after other associated CPU events
146 /// (such as writebacks).

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

346//////////////////////
347
348// schedule at specified time (place on event queue specified via
349// constructor)
350inline void
351Event::schedule(Tick t)
352{
353 assert(!scheduled());
354 assert(t >= curTick);
355
356 setFlags(Scheduled);
357#if TRACING_ON
358 when_scheduled = curTick;
359#endif
360 _when = t;
361 queue->schedule(this);
362}

--- 52 unchanged lines hidden ---