types: add a type for thread IDs and try to use it everywhere

This commit is contained in:
Nathan Binkert
2009-05-26 09:23:13 -07:00
parent d93392df28
commit 47877cf2db
107 changed files with 1595 additions and 1534 deletions

View File

@@ -175,7 +175,7 @@ InOrderThreadContext::readFloatRegBits(int reg_idx)
}
uint64_t
InOrderThreadContext::readRegOtherThread(int reg_idx, unsigned tid)
InOrderThreadContext::readRegOtherThread(int reg_idx, ThreadID tid)
{
return cpu->readRegOtherThread(reg_idx, tid);
}
@@ -212,7 +212,8 @@ InOrderThreadContext::setFloatRegBits(int reg_idx, FloatRegBits val)
}
void
InOrderThreadContext::setRegOtherThread(int misc_reg, const MiscReg &val, unsigned tid)
InOrderThreadContext::setRegOtherThread(int misc_reg, const MiscReg &val,
ThreadID tid)
{
cpu->setRegOtherThread(misc_reg, val, tid);
}