summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-12-01 23:10:42 -0800
committerGabe Black <gblack@eecs.umich.edu>2007-12-01 23:10:42 -0800
commit9805916cecc151a6482072635978a96e3e172fdc (patch)
tree2025ba8c74b1846075f2f9d89c6b1892fa824280 /src/arch
parent42ae409746adb2d64961af236516e8e57f52e731 (diff)
downloadgem5-9805916cecc151a6482072635978a96e3e172fdc.tar.xz
X86: Actually do something for the MiscRegFile clear function.
--HG-- extra : convert_revision : 36f8abaa9d09700d8ba9e09b4a10fa4dce580f36
Diffstat (limited to 'src/arch')
-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)