From patchwork Fri Jul 25 10:48:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Poletaev X-Patchwork-Id: 373652 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3CF941400D2 for ; Fri, 25 Jul 2014 20:49:15 +1000 (EST) Received: from localhost ([::1]:54073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAd3p-0006BI-2s for incoming@patchwork.ozlabs.org; Fri, 25 Jul 2014 06:49:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAd3R-0005ub-FY for qemu-devel@nongnu.org; Fri, 25 Jul 2014 06:48:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAd3J-0000kr-K6 for qemu-devel@nongnu.org; Fri, 25 Jul 2014 06:48:49 -0400 Received: from forward16.mail.yandex.net ([95.108.253.141]:42945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAd3J-0000kW-9O for qemu-devel@nongnu.org; Fri, 25 Jul 2014 06:48:41 -0400 Received: from web29g.yandex.ru (web29g.yandex.ru [95.108.253.238]) by forward16.mail.yandex.net (Yandex) with ESMTP id 3BE9FD20D96 for ; Fri, 25 Jul 2014 14:48:38 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web29g.yandex.ru (Yandex) with ESMTP id E5D9D2480635; Fri, 25 Jul 2014 14:48:37 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1406285318; bh=/J4uVIYv/XkbI4XsNOau52oA7KPWw3kY/CTiyDxbYJc=; h=From:To:Subject:Date; b=snu5GSpcGQ3j4GV8LgM2PuxIjcWhgKsBKkWUFqZLrQrtis5OfcNQqdbSIAUTFpkt9 K3osmy9fPNzaQPITtMIaBijAlJJnR80jZpNcFDcxPzNWnTumh5i/KRsuE/SIzI8Fa2 wOG6MUuuYy74cN+MeuMi4Q28dpHnJFaztBJAVVXQ= Received: from core-gw.novsu.ac.ru (core-gw.novsu.ac.ru [80.250.189.177]) by web29g.yandex.ru with HTTP; Fri, 25 Jul 2014 14:48:37 +0400 From: Dmitry Poletaev To: QEMU Developers MIME-Version: 1.0 Message-Id: <3089981406285317@web29g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 25 Jul 2014 14:48:37 +0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 95.108.253.141 Subject: [Qemu-devel] [PATCH] target-i386/fpu_helper.c: fbld instruction doesn't set minus sign X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Obviously, there is a misprint in function implementation. From: Dmitry Poletaev Signed-off-by: Dmitry Poletaev Reviewed-by: Richard Henderson --- 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 1b2900d..be1e545 100644 --- a/target-i386/fpu_helper.c +++ b/target-i386/fpu_helper.c @@ -622,7 +622,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr) } tmp = int64_to_floatx80(val, &env->fp_status); if (cpu_ldub_data(env, ptr + 9) & 0x80) { - floatx80_chs(tmp); + tmp = floatx80_chs(tmp); } fpush(env); ST0 = tmp;