Received: from eggs.gnu.org ([208.118.235.92]:55779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5v1y-0007NQ-F0 for qemu-devel@nongnu.org; Mon, 27 Aug 2012 04:50:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5v1u-0007Cm-S9 for qemu-devel@nongnu.org; Mon, 27 Aug 2012 04:50:46 -0400 Received: from mail-ey0-f173.google.com ([209.85.215.173]:61324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5v1u-0007Cg-L8 for qemu-devel@nongnu.org; Mon, 27 Aug 2012 04:50:42 -0400 Received: by eaac13 with SMTP id c13so1145833eaa.4 for ; Mon, 27 Aug 2012 01:50:40 -0700 (PDT) From: Richard Sandiford Date: Mon, 27 Aug 2012 09:50:38 +0100 Message-ID: <87a9xg3eht.fsf@talisman.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] [PATCH] [MIPS] Fix operands of RECIP2.S and RECIP2.PS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Read the second input operand of RECIP2.S and RECIP2.PS from FT rather than FD. RECIP2.D is already correct. Signed-off-by: Richard Sandiford --- target-mips/translate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 7104d30..d812986 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -6805,7 +6805,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, TCGv_i32 fp1 = tcg_temp_new_i32(); gen_load_fpr32(fp0, fs); - gen_load_fpr32(fp1, fd); + gen_load_fpr32(fp1, ft); gen_helper_float_recip2_s(fp0, fp0, fp1); tcg_temp_free_i32(fp1); gen_store_fpr32(fp0, fd); @@ -7543,7 +7543,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, TCGv_i64 fp1 = tcg_temp_new_i64(); gen_load_fpr64(ctx, fp0, fs); - gen_load_fpr64(ctx, fp1, fd); + gen_load_fpr64(ctx, fp1, ft); gen_helper_float_recip2_ps(fp0, fp0, fp1); tcg_temp_free_i64(fp1); gen_store_fpr64(ctx, fp0, fd); -- 1.7.7.6