]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/alpha: Fix user-only initialization of fpcr
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 5 Jan 2019 22:39:32 +0000 (08:39 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Jan 2019 23:04:30 +0000 (09:04 +1000)
When the representation of fpcr was changed, the user-only
initialization was not updated to match.  Oops.

Fixes: f3d3aad4a92
Fixes: https://bugs.launchpad.net/bugs/1701835
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/alpha/cpu.c

index a953897fccbe6a897276c6651d0e9d00b7fe3811..1fd95d6c0facb429fa9f12ec01cbcf65bd099573 100644 (file)
@@ -205,9 +205,9 @@ static void alpha_cpu_initfn(Object *obj)
     env->lock_addr = -1;
 #if defined(CONFIG_USER_ONLY)
     env->flags = ENV_FLAG_PS_USER | ENV_FLAG_FEN;
-    cpu_alpha_store_fpcr(env, (FPCR_INVD | FPCR_DZED | FPCR_OVFD
-                               | FPCR_UNFD | FPCR_INED | FPCR_DNOD
-                               | FPCR_DYN_NORMAL));
+    cpu_alpha_store_fpcr(env, (uint64_t)(FPCR_INVD | FPCR_DZED | FPCR_OVFD
+                                         | FPCR_UNFD | FPCR_INED | FPCR_DNOD
+                                         | FPCR_DYN_NORMAL) << 32);
 #else
     env->flags = ENV_FLAG_PAL_MODE | ENV_FLAG_FEN;
 #endif