summaryrefslogtreecommitdiff
path: root/src/cpu/o3/btb.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-05-26 09:23:13 -0700
committerNathan Binkert <nate@binkert.org>2009-05-26 09:23:13 -0700
commit47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca (patch)
tree6beb00dfe7e31b9bf82f7aba4710b0c487b6543f /src/cpu/o3/btb.hh
parentd93392df28fc6c9a5c70fb6252a12afdc72d9344 (diff)
downloadgem5-47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca.tar.xz
types: add a type for thread IDs and try to use it everywhere
Diffstat (limited to 'src/cpu/o3/btb.hh')
-rw-r--r--src/cpu/o3/btb.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/o3/btb.hh b/src/cpu/o3/btb.hh
index 38ecabc46..6557522e0 100644
--- a/src/cpu/o3/btb.hh
+++ b/src/cpu/o3/btb.hh
@@ -51,7 +51,7 @@ class DefaultBTB
Addr target;
/** The entry's thread id. */
- unsigned tid;
+ ThreadID tid;
/** Whether or not the entry is valid. */
bool valid;
@@ -74,14 +74,14 @@ class DefaultBTB
* @param tid The thread id.
* @return Returns the target of the branch.
*/
- Addr lookup(const Addr &inst_PC, unsigned tid);
+ Addr lookup(const Addr &inst_PC, ThreadID tid);
/** Checks if a branch is in the BTB.
* @param inst_PC The address of the branch to look up.
* @param tid The thread id.
* @return Whether or not the branch exists in the BTB.
*/
- bool valid(const Addr &inst_PC, unsigned tid);
+ bool valid(const Addr &inst_PC, ThreadID tid);
/** Updates the BTB with the target of a branch.
* @param inst_PC The address of the branch being updated.
@@ -89,7 +89,7 @@ class DefaultBTB
* @param tid The thread id.
*/
void update(const Addr &inst_PC, const Addr &target_PC,
- unsigned tid);
+ ThreadID tid);
private:
/** Returns the index into the BTB, based on the branch's PC.