]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/arm/vfp_helper.c
target/arm/vfp_helper: Call set_fpscr_to_host before updating to FPSCR
[mirror_qemu.git] / target / arm / vfp_helper.c
index 46041e32949c14b62c8550d2c2cd2c75dd175039..9710ef1c3e54947939f93c246e04303a6675a512 100644 (file)
@@ -197,6 +197,8 @@ void HELPER(vfp_set_fpscr)(CPUARMState *env, uint32_t val)
         val &= 0xf7c0009f;
     }
 
+    vfp_set_fpscr_to_host(env, val);
+
     /*
      * We don't implement trapped exception handling, so the
      * trap enable bits, IDE|IXE|UFE|OFE|DZE|IOE are all RAZ/WI (not RES0!)
@@ -217,8 +219,6 @@ void HELPER(vfp_set_fpscr)(CPUARMState *env, uint32_t val)
     env->vfp.qc[1] = 0;
     env->vfp.qc[2] = 0;
     env->vfp.qc[3] = 0;
-
-    vfp_set_fpscr_to_host(env, val);
 }
 
 void vfp_set_fpscr(CPUARMState *env, uint32_t val)