diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 20:25:14 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 20:25:14 -0700 |
commit | 6415252a0f006740995c07efe8b6b8a8b2ff8d86 (patch) | |
tree | a05c2abdc6915c3ccd4f18fdd7c5efd52506a042 | |
parent | 56d87cdc088dced1084aba3ccb23e1ed143a0346 (diff) | |
download | gem5-6415252a0f006740995c07efe8b6b8a8b2ff8d86.tar.xz |
X86: Initialize the MXCSR in SE mode.
-rw-r--r-- | src/arch/x86/process.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index 3434ebd73..4082e568c 100644 --- 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); } } |