From: Gabe Black Date: Tue, 18 Aug 2009 03:25:14 +0000 (-0700) Subject: X86: Initialize the MXCSR in SE mode. X-Git-Tag: Calvin_Submission~44 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6415252a0f006740995c07efe8b6b8a8b2ff8d86;p=gem5.git X86: Initialize the MXCSR in SE mode. --- 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); } }