diff options
author | Nathan Binkert <nate@binkert.org> | 2009-05-26 09:23:13 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-05-26 09:23:13 -0700 |
commit | 47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca (patch) | |
tree | 6beb00dfe7e31b9bf82f7aba4710b0c487b6543f /src/cpu/inorder/first_stage.hh | |
parent | d93392df28fc6c9a5c70fb6252a12afdc72d9344 (diff) | |
download | gem5-47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca.tar.xz |
types: add a type for thread IDs and try to use it everywhere
Diffstat (limited to 'src/cpu/inorder/first_stage.hh')
-rw-r--r-- | src/cpu/inorder/first_stage.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cpu/inorder/first_stage.hh b/src/cpu/inorder/first_stage.hh index 55914c85c..2a69678e4 100644 --- a/src/cpu/inorder/first_stage.hh +++ b/src/cpu/inorder/first_stage.hh @@ -56,10 +56,10 @@ class FirstStage : public PipelineStage { void processStage(bool &status_change); /** Process All Instructions Available */ - void processInsts(unsigned tid); + void processInsts(ThreadID tid); /** Squash Instructions Above a Seq. Num */ - void squash(InstSeqNum squash_seq_num, unsigned tid); + void squash(InstSeqNum squash_seq_num, ThreadID tid); /** There are no insts. coming from previous stages, so there is * no need to sort insts here @@ -69,7 +69,7 @@ class FirstStage : public PipelineStage { /** There are no skidBuffers for the first stage. So * just use an empty function. */ - void skidInsert(unsigned tid) { } + void skidInsert(ThreadID tid) { } /** The number of fetching threads in the CPU */ int numFetchingThreads; @@ -85,13 +85,13 @@ class FirstStage : public PipelineStage { FetchPriority fetchPolicy; /** List that has the threads organized by priority. */ - std::list<unsigned> *fetchPriorityList; + std::list<ThreadID> *fetchPriorityList; /** Return the next fetching thread */ - int getFetchingThread(FetchPriority &fetch_priority); + ThreadID getFetchingThread(FetchPriority &fetch_priority); - /** Return next thred given Round Robin Policy for Thread Fetching */ - int roundRobin(); + /** Return next thread given Round Robin Policy for Thread Fetching */ + ThreadID roundRobin(); }; #endif // __CPU_INORDER_FIRST_STAGE_HH__ |