mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
UserspaceEmulator: Clear c0 on x87 constant load instructions
This commit is contained in:
parent
3f581c77d9
commit
47fe911196
1 changed files with 7 additions and 0 deletions
|
@ -1088,30 +1088,37 @@ void SoftFPU::FYL2XP1(const X86::Instruction&)
|
||||||
// LOAD CONSTANT
|
// LOAD CONSTANT
|
||||||
void SoftFPU::FLD1(const X86::Instruction&)
|
void SoftFPU::FLD1(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(1.0l);
|
fpu_push(1.0l);
|
||||||
}
|
}
|
||||||
void SoftFPU::FLDZ(const X86::Instruction&)
|
void SoftFPU::FLDZ(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(0.0l);
|
fpu_push(0.0l);
|
||||||
}
|
}
|
||||||
void SoftFPU::FLDPI(const X86::Instruction&)
|
void SoftFPU::FLDPI(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(M_PIl);
|
fpu_push(M_PIl);
|
||||||
}
|
}
|
||||||
void SoftFPU::FLDL2E(const X86::Instruction&)
|
void SoftFPU::FLDL2E(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(M_LOG2El);
|
fpu_push(M_LOG2El);
|
||||||
}
|
}
|
||||||
void SoftFPU::FLDLN2(const X86::Instruction&)
|
void SoftFPU::FLDLN2(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(M_LN2l);
|
fpu_push(M_LN2l);
|
||||||
}
|
}
|
||||||
void SoftFPU::FLDL2T(const X86::Instruction&)
|
void SoftFPU::FLDL2T(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(log2l(10.0l));
|
fpu_push(log2l(10.0l));
|
||||||
}
|
}
|
||||||
void SoftFPU::FLDLG2(const X86::Instruction&)
|
void SoftFPU::FLDLG2(const X86::Instruction&)
|
||||||
{
|
{
|
||||||
|
set_c1(0);
|
||||||
fpu_push(log10l(2.0l));
|
fpu_push(log10l(2.0l));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue