summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/miscregfile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/miscregfile.cc b/src/arch/x86/miscregfile.cc
index 05d64f73f..8c06e2e11 100644
--- a/src/arch/x86/miscregfile.cc
+++ b/src/arch/x86/miscregfile.cc
@@ -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)