Index: src/mips64/simulator-mips64.cc |
diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc |
index 9899d47a0e5ec940d99bf1514827f6f57f2187f9..883991768c2386502e55461ba0acab8e0dc9ee76 100644 |
--- a/src/mips64/simulator-mips64.cc |
+++ b/src/mips64/simulator-mips64.cc |
@@ -13,6 +13,7 @@ |
#include "src/assembler.h" |
#include "src/base/bits.h" |
+#include "src/codegen.h" |
#include "src/disasm.h" |
#include "src/mips64/constants-mips64.h" |
#include "src/mips64/simulator-mips64.h" |
@@ -2391,7 +2392,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
set_fpu_register_double(fd_reg, -fs); |
break; |
case SQRT_D: |
- set_fpu_register_double(fd_reg, sqrt(fs)); |
+ set_fpu_register_double(fd_reg, fast_sqrt(fs)); |
break; |
case C_UN_D: |
set_fcsr_bit(fcsr_cc, std::isnan(fs) || std::isnan(ft)); |