projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d87cd
)
X86: Initialize the MXCSR in SE mode.
author
Gabe Black
<gblack@eecs.umich.edu>
Tue, 18 Aug 2009 03:25:14 +0000
(20:25 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Tue, 18 Aug 2009 03:25:14 +0000
(20:25 -0700)
src/arch/x86/process.cc
patch
|
blob
|
history
diff --git
a/src/arch/x86/process.cc
b/src/arch/x86/process.cc
index 3434ebd73a0706909ddfd7358b9ef32386d57616..4082e568cd5a40eb1973841bad7d5b788ac0e8a7 100644
(file)
--- a/
src/arch/x86/process.cc
+++ b/
src/arch/x86/process.cc
@@
-270,6
+270,8
@@
X86_64LiveProcess::startup()
// setting it to one.
cr0.pe = 1; // We're definitely in protected mode.
tc->setMiscReg(MISCREG_CR0, cr0);
+
+ tc->setMiscReg(MISCREG_MXCSR, 0x1f80);
}
}
@@
-390,6
+392,8
@@
I386LiveProcess::startup()
// setting it to one.
cr0.pe = 1; // We're definitely in protected mode.
tc->setMiscReg(MISCREG_CR0, cr0);
+
+ tc->setMiscReg(MISCREG_MXCSR, 0x1f80);
}
}