]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/alpha: Fix SWCR_MAP_UMZ
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 21 Sep 2019 04:32:51 +0000 (21:32 -0700)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 26 Sep 2019 18:00:53 +0000 (19:00 +0100)
We were setting the wrong bit.  The fp_status.flush_to_zero
setting is overwritten by either the constant 1 or the value
of fpcr_flush_to_zero depending on bits within an fp insn.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20190921043256.4575-3-richard.henderson@linaro.org>

target/alpha/helper.c

index 6c1703682e0eacab970ed7f1634d8e417ed82039..10602fb3394ef266b4ccb30fc8d3e7912b53a86e 100644 (file)
@@ -71,7 +71,7 @@ void cpu_alpha_store_fpcr(CPUAlphaState *env, uint64_t val)
         env->fp_status.flush_inputs_to_zero = 1;
     }
     if (env->swcr & SWCR_MAP_UMZ) {
-        env->fp_status.flush_to_zero = 1;
+        env->fpcr_flush_to_zero = 1;
     }
     env->fpcr_exc_enable &= ~(alpha_ieee_swcr_to_fpcr(env->swcr) >> 32);
 #endif