X86: Actually do something for the MiscRegFile clear function.

--HG--
extra : convert_revision : 36f8abaa9d09700d8ba9e09b4a10fa4dce580f36
This commit is contained in:
Gabe Black
2007-12-01 23:10:42 -08:00
parent 42ae409746
commit 9805916cec

View File

@@ -103,7 +103,8 @@ string X86ISA::getMiscRegName(RegIndex index)
void MiscRegFile::clear()
{
//When there are actually misc regs implemented, this will clear them
// Blank everything. 0 might not be an appropriate value for some things.
memset(regVal, 0, NumMiscRegs * sizeof(MiscReg));
}
MiscReg MiscRegFile::readRegNoEffect(int miscReg)