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:
parent
8fd97bee7f
commit
b5b535aa81
Notes:
sideshowbarker
2024-07-19 01:23:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b5b535aa810
1 changed files with 6 additions and 0 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue