summaryrefslogtreecommitdiff
path: root/src/arch/alpha/miscregfile.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/arch/alpha/miscregfile.hh
parentd93392df28fc6c9a5c70fb6252a12afdc72d9344 (diff)
downloadgem5-47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca.tar.xz
types: add a type for thread IDs and try to use it everywhere
Diffstat (limited to 'src/arch/alpha/miscregfile.hh')
-rw-r--r--src/arch/alpha/miscregfile.hh13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/arch/alpha/miscregfile.hh b/src/arch/alpha/miscregfile.hh
index 1a215b8e4..0d95e5a6d 100644
--- a/src/arch/alpha/miscregfile.hh
+++ b/src/arch/alpha/miscregfile.hh
@@ -88,11 +88,12 @@ class MiscRegFile
int getInstAsid();
int getDataAsid();
- MiscReg readRegNoEffect(int misc_reg, unsigned tid = 0);
- MiscReg readReg(int misc_reg, ThreadContext *tc, unsigned tid = 0);
+ MiscReg readRegNoEffect(int misc_reg, ThreadID tid = 0);
+ MiscReg readReg(int misc_reg, ThreadContext *tc, ThreadID tid = 0);
- void setRegNoEffect(int misc_reg, const MiscReg &val, unsigned tid = 0);
- void setReg(int misc_reg, const MiscReg &val, ThreadContext *tc, unsigned tid = 0);
+ void setRegNoEffect(int misc_reg, const MiscReg &val, ThreadID tid = 0);
+ void setReg(int misc_reg, const MiscReg &val, ThreadContext *tc,
+ ThreadID tid = 0);
void
clear()
@@ -107,12 +108,12 @@ class MiscRegFile
void serialize(std::ostream &os);
void unserialize(Checkpoint *cp, const std::string &section);
- void reset(std::string core_name, unsigned num_threads,
+ void reset(std::string core_name, ThreadID num_threads,
unsigned num_vpes, BaseCPU *_cpu)
{ }
- void expandForMultithreading(unsigned num_threads, unsigned num_vpes)
+ void expandForMultithreading(ThreadID num_threads, unsigned num_vpes)
{ }