diff --git a/sim/aarch64/ChangeLog b/sim/aarch64/ChangeLog index 2d9a9d20ea..e58d8b2e48 100644 --- a/sim/aarch64/ChangeLog +++ b/sim/aarch64/ChangeLog @@ -1,3 +1,7 @@ +2016-07-21 Nick Clifton + + * simulator.c (fsqrts): Use fsqrt rather than sqrt. + 2016-06-30 Jim Wilson * cpustate.h: Include config.h. diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c index 7c15e7a50b..45844e2f42 100644 --- a/sim/aarch64/simulator.c +++ b/sim/aarch64/simulator.c @@ -7754,7 +7754,7 @@ fsqrts (sim_cpu *cpu) unsigned sd = INSTR (4, 0); TRACE_DECODE (cpu, "emulated at line %d", __LINE__); - aarch64_set_FP_float (cpu, sd, sqrt (aarch64_get_FP_float (cpu, sn))); + aarch64_set_FP_float (cpu, sd, sqrtf (aarch64_get_FP_float (cpu, sn))); } /* Double square root. */