summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-17 20:25:14 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-17 20:25:14 -0700
commit6415252a0f006740995c07efe8b6b8a8b2ff8d86 (patch)
treea05c2abdc6915c3ccd4f18fdd7c5efd52506a042 /src/arch
parent56d87cdc088dced1084aba3ccb23e1ed143a0346 (diff)
downloadgem5-6415252a0f006740995c07efe8b6b8a8b2ff8d86.tar.xz
X86: Initialize the MXCSR in SE mode.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/process.cc4
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);
}
}