projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ae409
)
X86: Actually do something for the MiscRegFile clear function.
author
Gabe Black
<gblack@eecs.umich.edu>
Sun, 2 Dec 2007 07:10:42 +0000
(23:10 -0800)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sun, 2 Dec 2007 07:10:42 +0000
(23:10 -0800)
--HG--
extra : convert_revision :
36f8abaa9d09700d8ba9e09b4a10fa4dce580f36
src/arch/x86/miscregfile.cc
patch
|
blob
|
history
diff --git
a/src/arch/x86/miscregfile.cc
b/src/arch/x86/miscregfile.cc
index 05d64f73ff5b4385f74aad7832866213e19ef939..8c06e2e1106bc977adf0937372483e3c053d67ed 100644
(file)
--- 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)