summaryrefslogtreecommitdiff
path: root/src/cpu/btb.cc
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/btb.cc
parentd93392df28fc6c9a5c70fb6252a12afdc72d9344 (diff)
downloadgem5-47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca.tar.xz
types: add a type for thread IDs and try to use it everywhere
Diffstat (limited to 'src/cpu/btb.cc')
-rw-r--r--src/cpu/btb.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/btb.cc b/src/cpu/btb.cc
index 93d6ee768..4c1d441be 100644
--- a/src/cpu/btb.cc
+++ b/src/cpu/btb.cc
@@ -82,7 +82,7 @@ DefaultBTB::getTag(const Addr &inst_PC)
}
bool
-DefaultBTB::valid(const Addr &inst_PC, unsigned tid)
+DefaultBTB::valid(const Addr &inst_PC, ThreadID tid)
{
unsigned btb_idx = getIndex(inst_PC);
@@ -103,7 +103,7 @@ DefaultBTB::valid(const Addr &inst_PC, unsigned tid)
// address is valid, and also the address. For now will just use addr = 0 to
// represent invalid entry.
Addr
-DefaultBTB::lookup(const Addr &inst_PC, unsigned tid)
+DefaultBTB::lookup(const Addr &inst_PC, ThreadID tid)
{
unsigned btb_idx = getIndex(inst_PC);
@@ -121,7 +121,7 @@ DefaultBTB::lookup(const Addr &inst_PC, unsigned tid)
}
void
-DefaultBTB::update(const Addr &inst_PC, const Addr &target, unsigned tid)
+DefaultBTB::update(const Addr &inst_PC, const Addr &target, ThreadID tid)
{
unsigned btb_idx = getIndex(inst_PC);