diff options
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/UserspaceEmulator/SoftCPU.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp index e86db38ea9..516cb0e763 100644 --- a/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -1573,7 +1573,11 @@ void SoftCPU::FCHS(const X86::Instruction&) fpu_set(0, -fpu_get(0)); } -void SoftCPU::FABS(const X86::Instruction&) { TODO_INSN(); } +void SoftCPU::FABS(const X86::Instruction&) +{ + fpu_set(0, __builtin_fabs(fpu_get(0))); +} + void SoftCPU::FTST(const X86::Instruction&) { TODO_INSN(); } void SoftCPU::FXAM(const X86::Instruction&) { TODO_INSN(); } |