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/arch/mips/regfile/regfile.cc | |
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/arch/mips/regfile/regfile.cc')
-rw-r--r-- | src/arch/mips/regfile/regfile.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/mips/regfile/regfile.cc b/src/arch/mips/regfile/regfile.cc index a1c8eab6a..975fad963 100644 --- a/src/arch/mips/regfile/regfile.cc +++ b/src/arch/mips/regfile/regfile.cc @@ -46,7 +46,8 @@ RegFile::clear() } void -RegFile::reset(std::string core_name, unsigned num_threads, unsigned num_vpes, BaseCPU *_cpu) +RegFile::reset(std::string core_name, ThreadID num_threads, unsigned num_vpes, + BaseCPU *_cpu) { bzero(&intRegFile, sizeof(intRegFile)); bzero(&floatRegFile, sizeof(floatRegFile)); @@ -66,27 +67,26 @@ RegFile::setIntReg(int intReg, const IntReg &val) } MiscReg -RegFile::readMiscRegNoEffect(int miscReg, unsigned tid) +RegFile::readMiscRegNoEffect(int miscReg, ThreadID tid) { return miscRegFile.readRegNoEffect(miscReg, tid); } MiscReg -RegFile::readMiscReg(int miscReg, ThreadContext *tc, - unsigned tid) +RegFile::readMiscReg(int miscReg, ThreadContext *tc, ThreadID tid) { return miscRegFile.readReg(miscReg, tc, tid); } void -RegFile::setMiscRegNoEffect(int miscReg, const MiscReg &val, unsigned tid) +RegFile::setMiscRegNoEffect(int miscReg, const MiscReg &val, ThreadID tid) { miscRegFile.setRegNoEffect(miscReg, val, tid); } void RegFile::setMiscReg(int miscReg, const MiscReg &val, - ThreadContext * tc, unsigned tid) + ThreadContext *tc, ThreadID tid) { miscRegFile.setReg(miscReg, val, tc, tid); } |