target/ppc: Tidy helper_fsqrt
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Jul 2018 15:17:30 +0000 (08:17 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 21 Aug 2018 04:28:45 +0000 (14:28 +1000)
commit49ab52ef69c804264fd2c61a9a61678a23d4fb33
tree6c346786c44a182815884aaf44ad3b24e7c2ecfd
parentac43cec37e9b1661935e946774ec34f0d50c641e
target/ppc: Tidy helper_fsqrt

Tidy the invalid exception checking so that we rely on softfloat for
initial argument validation, and select the kind of invalid operand
exception only when we know we must.  Pass and return float64 values
directly rather than bounce through the CPU_DoubleU union.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c
target/ppc/helper.h