From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIa2G-0005bH-FG for qemu-devel@nongnu.org; Fri, 24 Jul 2015 06:17:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIa2F-0000qg-8E for qemu-devel@nongnu.org; Fri, 24 Jul 2015 06:17:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIa2F-0000qZ-33 for qemu-devel@nongnu.org; Fri, 24 Jul 2015 06:16:59 -0400 From: Paolo Bonzini Date: Fri, 24 Jul 2015 12:16:34 +0200 Message-Id: <1437732994-20478-14-git-send-email-pbonzini@redhat.com> In-Reply-To: <1437732994-20478-1-git-send-email-pbonzini@redhat.com> References: <1437732994-20478-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 13/13] target-i386/FPU: a misprint in helper_fistll_ST0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Dmitry Poletaev From: Dmitry Poletaev There is a cut-and-paste mistake 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. Signed-off-by: Dmitry Poletaev Reported-by: Kirill Batuzov Message-Id: <2692911436348920@web2m.yandex.ru> Signed-off-by: Paolo Bonzini --- 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 280adba..1f954e0 100644 --- a/target-i386/fpu_helper.c +++ b/target-i386/fpu_helper.c @@ -272,7 +272,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; } -- 2.4.3