From c9c02efb99c0a982c116c7d1d8ed9a984c174198 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 18 Jun 2013 16:28:36 +0200 Subject: [PATCH] x86: Initialize the MXCSR register --- src/arch/x86/faults.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/x86/faults.cc b/src/arch/x86/faults.cc index 92f3dc257..995326562 100644 --- a/src/arch/x86/faults.cc +++ b/src/arch/x86/faults.cc @@ -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; -- 2.30.2