Received: from eggs.gnu.org ([2001:4830:134:3::10]:55479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZClyF-0006hd-6V for qemu-devel@nongnu.org; Wed, 08 Jul 2015 05:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCly9-0008VD-UW for qemu-devel@nongnu.org; Wed, 08 Jul 2015 05:48:51 -0400 Received: from forward19m.cmail.yandex.net ([5.255.216.150]:46225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCly9-0008US-LY for qemu-devel@nongnu.org; Wed, 08 Jul 2015 05:48:45 -0400 Received: from web2m.yandex.ru (web2m.yandex.ru [37.140.138.93]) by forward19m.cmail.yandex.net (Yandex) with ESMTP id F100E2109E for ; Wed, 8 Jul 2015 12:48:41 +0300 (MSK) From: Dmitry Poletaev MIME-Version: 1.0 Message-Id: <2692911436348920@web2m.yandex.ru> Date: Wed, 08 Jul 2015 12:48:40 +0300 Content-Transfer-Encoding: 7bit Content-Type: text/plain Subject: [Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers 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 Signed-off-by: Dmitry Poletaev Reported-by: Kirill Batuzov --- 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