diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2018-07-03 08:17:27 -0700 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-08-21 14:28:45 +1000 |
commit | ae13018d79fb4db7c6a648617bfa0d5976f6e47d (patch) | |
tree | f40672d98a99d47db423bcdad90f2ba0bcd828e5 /io/channel-buffer.c | |
parent | e82c42b7c5c1acbcfd5e5fe2b1b850c56e619c0d (diff) |
target/ppc: Honor fpscr_ze semantics and tidy fdiv
Divide by zero, exception taken, leaves the destination register
unmodified. Therefore we must raise the exception before returning
from helper_fdiv. Move the check from do_float_check_status into
helper_fdiv.
At the same time, 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.
At the same time, 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>
Diffstat (limited to 'io/channel-buffer.c')
0 files changed, 0 insertions, 0 deletions