cpu.hh (5100:7a0180040755) cpu.hh (5336:c7e21f4e5a2e)
1/*
2 * Copyright (c) 2004-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;

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

131
132 public:
133 /** Constructs a tick event. */
134 TickEvent(FullO3CPU<Impl> *c);
135
136 /** Processes a tick event, calling tick() on the CPU. */
137 void process();
138 /** Returns the description of the tick event. */
1/*
2 * Copyright (c) 2004-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;

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

131
132 public:
133 /** Constructs a tick event. */
134 TickEvent(FullO3CPU<Impl> *c);
135
136 /** Processes a tick event, calling tick() on the CPU. */
137 void process();
138 /** Returns the description of the tick event. */
139 const char *description();
139 const char *description() const;
140 };
141
142 /** The tick event used for scheduling CPU ticks. */
143 TickEvent tickEvent;
144
145 /** Schedule tick event, regardless of its current state. */
146 void scheduleTickEvent(int delay)
147 {

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

173
174 /** Initialize Event */
175 void init(int thread_num, FullO3CPU<Impl> *thread_cpu);
176
177 /** Processes the event, calling activateThread() on the CPU. */
178 void process();
179
180 /** Returns the description of the event. */
140 };
141
142 /** The tick event used for scheduling CPU ticks. */
143 TickEvent tickEvent;
144
145 /** Schedule tick event, regardless of its current state. */
146 void scheduleTickEvent(int delay)
147 {

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

173
174 /** Initialize Event */
175 void init(int thread_num, FullO3CPU<Impl> *thread_cpu);
176
177 /** Processes the event, calling activateThread() on the CPU. */
178 void process();
179
180 /** Returns the description of the event. */
181 const char *description();
181 const char *description() const;
182 };
183
184 /** Schedule thread to activate , regardless of its current state. */
185 void scheduleActivateThreadEvent(int tid, int delay)
186 {
187 // Schedule thread to activate, regardless of its current state.
188 if (activateThreadEvent[tid].squashed())
189 activateThreadEvent[tid].

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

224
225 /** Processes the event, calling activateThread() on the CPU. */
226 void process();
227
228 /** Sets whether the thread should also be removed from the CPU. */
229 void setRemove(bool _remove) { remove = _remove; }
230
231 /** Returns the description of the event. */
182 };
183
184 /** Schedule thread to activate , regardless of its current state. */
185 void scheduleActivateThreadEvent(int tid, int delay)
186 {
187 // Schedule thread to activate, regardless of its current state.
188 if (activateThreadEvent[tid].squashed())
189 activateThreadEvent[tid].

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

224
225 /** Processes the event, calling activateThread() on the CPU. */
226 void process();
227
228 /** Sets whether the thread should also be removed from the CPU. */
229 void setRemove(bool _remove) { remove = _remove; }
230
231 /** Returns the description of the event. */
232 const char *description();
232 const char *description() const;
233 };
234
235 /** Schedule cpu to deallocate thread context.*/
236 void scheduleDeallocateContextEvent(int tid, bool remove, int delay)
237 {
238 // Schedule thread to activate, regardless of its current state.
239 if (deallocateContextEvent[tid].squashed())
240 deallocateContextEvent[tid].

--- 475 unchanged lines hidden ---
233 };
234
235 /** Schedule cpu to deallocate thread context.*/
236 void scheduleDeallocateContextEvent(int tid, bool remove, int delay)
237 {
238 // Schedule thread to activate, regardless of its current state.
239 if (deallocateContextEvent[tid].squashed())
240 deallocateContextEvent[tid].

--- 475 unchanged lines hidden ---