UserspaceEmulator: Untaint flags in FCOMI and FUCOMI for now

This makes UE logging bearable until we can get proper shadow data
support for the FPU stack.
This commit is contained in:
Andreas Kling 2020-11-14 23:11:07 +01:00
parent 8fd97bee7f
commit b5b535aa81
Notes: sideshowbarker 2024-07-19 01:23:30 +09:00

View file

@ -1742,6 +1742,9 @@ void SoftCPU::FUCOMI(const X86::Instruction& insn)
set_cf(fpu_get(0) < fpu_get(i));
set_of(false);
}
// FIXME: Taint should be based on ST(0) and ST(i)
m_flags_tainted = false;
}
void SoftCPU::FCOMI(const X86::Instruction& insn)
@ -1753,6 +1756,9 @@ void SoftCPU::FCOMI(const X86::Instruction& insn)
set_pf(false);
set_cf(fpu_get(0) < fpu_get(i));
set_of(false);
// FIXME: Taint should be based on ST(0) and ST(i)
m_flags_tainted = false;
}
void SoftCPU::FSTP_RM80(const X86::Instruction&) { TODO_INSN(); }