x86: Initialize the MXCSR register
authorAndreas Sandberg <andreas@sandberg.pp.se>
Tue, 18 Jun 2013 14:28:36 +0000 (16:28 +0200)
committerAndreas Sandberg <andreas@sandberg.pp.se>
Tue, 18 Jun 2013 14:28:36 +0000 (16:28 +0200)
src/arch/x86/faults.cc

index 92f3dc2573f5188cbedb7f1186cec0e4ece08d62..9953265622632a47efef975c08a41e7e65d7d7ff 100644 (file)
@@ -268,6 +268,8 @@ namespace X86ISA
         tc->setMiscReg(MISCREG_DR6, 0x00000000ffff0ff0ULL);
         tc->setMiscReg(MISCREG_DR7, 0x0000000000000400ULL);
 
+        tc->setMiscReg(MISCREG_MXCSR, 0x1f80);
+
         // Update the handy M5 Reg.
         tc->setMiscReg(MISCREG_M5_REG, 0);
         MicroPC entry = X86ISAInst::RomLabels::extern_label_initIntHalt;