cpu.hh (2829:f354c00bba05) | cpu.hh (2834:c8342a71404b) |
---|---|
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; --- 200 unchanged lines hidden (view full) --- 209 /** Ticks CPU, calling tick() on each stage, and checking the overall 210 * activity to see if the CPU should deschedule itself. 211 */ 212 void tick(); 213 214 /** Initialize the CPU */ 215 void init(); 216 | 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; --- 200 unchanged lines hidden (view full) --- 209 /** Ticks CPU, calling tick() on each stage, and checking the overall 210 * activity to see if the CPU should deschedule itself. 211 */ 212 void tick(); 213 214 /** Initialize the CPU */ 215 void init(); 216 |
217 /** Returns the Number of Active Threads in the CPU */ 218 int numActiveThreads() 219 { return activeThreads.size(); } 220 |
|
217 /** Add Thread to Active Threads List */ 218 void activateThread(unsigned int tid); 219 220 /** Setup CPU to insert a thread's context */ 221 void insertThread(unsigned tid); 222 223 /** Remove all of a thread's context from CPU */ 224 void removeThread(unsigned tid); --- 381 unchanged lines hidden --- | 221 /** Add Thread to Active Threads List */ 222 void activateThread(unsigned int tid); 223 224 /** Setup CPU to insert a thread's context */ 225 void insertThread(unsigned tid); 226 227 /** Remove all of a thread's context from CPU */ 228 void removeThread(unsigned tid); --- 381 unchanged lines hidden --- |