target/riscv: Check nanboxed inputs to fp helpers
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 24 Jul 2020 00:28:04 +0000 (17:28 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Sat, 22 Aug 2020 05:37:55 +0000 (22:37 -0700)
commit00e925c56074f8c4923a087e2eecea8a3315ea40
tree4c48cd11c2863a27beb39ddf4cb0524cbf25a6f0
parent40eaa473611936445ae9c63841445cfa6e36840b
target/riscv: Check nanboxed inputs to fp helpers

If a 32-bit input is not properly nanboxed, then the input is
replaced with the default qnan.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Message-Id: <20200724002807.441147-5-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/fpu_helper.c
target/riscv/internals.h