X86: Initialize the MXCSR in SE mode.
This commit is contained in:
parent
56d87cdc08
commit
6415252a0f
1 changed files with 4 additions and 0 deletions
|
@ -270,6 +270,8 @@ X86_64LiveProcess::startup()
|
||||||
// setting it to one.
|
// setting it to one.
|
||||||
cr0.pe = 1; // We're definitely in protected mode.
|
cr0.pe = 1; // We're definitely in protected mode.
|
||||||
tc->setMiscReg(MISCREG_CR0, cr0);
|
tc->setMiscReg(MISCREG_CR0, cr0);
|
||||||
|
|
||||||
|
tc->setMiscReg(MISCREG_MXCSR, 0x1f80);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -390,6 +392,8 @@ I386LiveProcess::startup()
|
||||||
// setting it to one.
|
// setting it to one.
|
||||||
cr0.pe = 1; // We're definitely in protected mode.
|
cr0.pe = 1; // We're definitely in protected mode.
|
||||||
tc->setMiscReg(MISCREG_CR0, cr0);
|
tc->setMiscReg(MISCREG_CR0, cr0);
|
||||||
|
|
||||||
|
tc->setMiscReg(MISCREG_MXCSR, 0x1f80);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue