qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0


From: Dmitry Poletaev
Subject: [Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0
Date: Wed, 08 Jul 2015 12:48:40 +0300

There is a misprint in the patch 
https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg01657.html . It cause 
errors in guest work.
Here is the bugfix.

From: Dmitry Poletaev <address@hidden>
Signed-off-by: Dmitry Poletaev <address@hidden>
Reported-by: Kirill Batuzov <address@hidden>

---
 target-i386/fpu_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c
index fc25a03..fcf400d 100644
--- a/target-i386/fpu_helper.c
+++ b/target-i386/fpu_helper.c
@@ -273,7 +273,7 @@ int64_t helper_fistll_ST0(CPUX86State *env)
     old_exp_flags = get_float_exception_flags(&env->fp_status);
     set_float_exception_flags(0, &env->fp_status);
     
-    val = floatx80_to_int32(ST0, &env->fp_status);
+    val = floatx80_to_int64(ST0, &env->fp_status);
     if (get_float_exception_flags(&env->fp_status) & float_flag_invalid) {
         val = 0x8000000000000000ULL;
     }
-- 
1.8.4.msysgit.0



reply via email to

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