qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] mips: Make `helper_float_cvtw_s' consistent with th


From: Maciej W. Rozycki
Subject: [Qemu-devel] [PATCH] mips: Make `helper_float_cvtw_s' consistent with the remaining helpers
Date: Wed, 5 Nov 2014 15:35:59 +0000
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

Move the call to `update_fcr31' in `helper_float_cvtw_s' after the 
exception flag check, for consistency with the remaining helpers that do 
it last too.

Signed-off-by: Maciej W. Rozycki <address@hidden>
---
 I hope there's no question about this, please apply.

  Maciej

qemu-mips-op-helper-cvtw_s-fcr31.diff
Index: qemu-git-trunk/target-mips/op_helper.c
===================================================================
--- qemu-git-trunk.orig/target-mips/op_helper.c 2014-11-02 19:23:41.548963320 
+0000
+++ qemu-git-trunk/target-mips/op_helper.c      2014-11-02 19:23:55.548607403 
+0000
@@ -2532,11 +2532,11 @@ uint32_t helper_float_cvtw_s(CPUMIPSStat
     uint32_t wt2;
 
     wt2 = float32_to_int32(fst0, &env->active_fpu.fp_status);
-    update_fcr31(env, GETPC());
     if (get_float_exception_flags(&env->active_fpu.fp_status)
         & (float_flag_invalid | float_flag_overflow)) {
         wt2 = FP_TO_INT32_OVERFLOW;
     }
+    update_fcr31(env, GETPC());
     return wt2;
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]