diff options
author | Taylor Simpson <tsimpson@quicinc.com> | 2021-04-08 20:07:38 -0500 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-05-01 08:31:43 -0700 |
commit | c0336c87b773614eebd23714e3a866bfcd78e9f2 (patch) | |
tree | 755b6f06f063fe06aa280a17e64f6162f6facfea /target/hexagon/cpu.c | |
parent | 8c36752435da380ddf2733d499c4be2cdb8c1b6f (diff) | |
download | qemu-c0336c87b773614eebd23714e3a866bfcd78e9f2.zip qemu-c0336c87b773614eebd23714e3a866bfcd78e9f2.tar.gz qemu-c0336c87b773614eebd23714e3a866bfcd78e9f2.tar.bz2 |
Hexagon (target/hexagon) use softfloat default NaN and tininess
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <1617930474-31979-11-git-send-email-tsimpson@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hexagon/cpu.c')
-rw-r--r-- | target/hexagon/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index f044506..ff44fd6 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -23,6 +23,7 @@ #include "exec/exec-all.h" #include "qapi/error.h" #include "hw/qdev-properties.h" +#include "fpu/softfloat-helpers.h" static void hexagon_v67_cpu_init(Object *obj) { @@ -205,8 +206,12 @@ static void hexagon_cpu_reset(DeviceState *dev) CPUState *cs = CPU(dev); HexagonCPU *cpu = HEXAGON_CPU(cs); HexagonCPUClass *mcc = HEXAGON_CPU_GET_CLASS(cpu); + CPUHexagonState *env = &cpu->env; mcc->parent_reset(dev); + + set_default_nan_mode(1, &env->fp_status); + set_float_detect_tininess(float_tininess_before_rounding, &env->fp_status); } static void hexagon_cpu_disas_set_info(CPUState *s, disassemble_info *info) |