From patchwork Tue Aug 18 17:35:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petar Jovanovic X-Patchwork-Id: 508412 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 31996140761 for ; Wed, 19 Aug 2015 03:36:38 +1000 (AEST) Received: from localhost ([::1]:58643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRkoO-0002AA-A4 for incoming@patchwork.ozlabs.org; Tue, 18 Aug 2015 13:36:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRko6-0001pI-Dt for qemu-devel@nongnu.org; Tue, 18 Aug 2015 13:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRko1-00044e-C1 for qemu-devel@nongnu.org; Tue, 18 Aug 2015 13:36:18 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:38900 helo=mail.rt-rk.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRko1-0003rk-5O for qemu-devel@nongnu.org; Tue, 18 Aug 2015 13:36:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id B0D881A4555; Tue, 18 Aug 2015 19:35:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com Received: from mail.rt-rk.com ([127.0.0.1]) by localhost (mail.rt-rk.com [127.0.0.1]) (amavisd-new, port 10026) with LMTP id zr930gy5hfcZ; Tue, 18 Aug 2015 19:35:49 +0200 (CEST) Received: from mcs14.domain.local (mcs14.domain.local [192.168.232.214]) by mail.rt-rk.com (Postfix) with ESMTPSA id 9DB111A22C7; Tue, 18 Aug 2015 19:35:49 +0200 (CEST) From: Petar Jovanovic To: qemu-devel@nongnu.org Date: Tue, 18 Aug 2015 19:35:29 +0200 Message-Id: <1439919329-98555-1-git-send-email-petar.jovanovic@rt-rk.com> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Cc: petar.jovanovic@imgtec.com, aurelien@aurel32.net Subject: [Qemu-devel] [PATCH] target-mips: remove wrong checks for recip.fmt and rsqrt.fmt 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 From: Petar Jovanovic Instructions recip.{s|d} and rsqrt.{s|d} do not require 64-bit FPU neither they require any particular mode for its FPU. This patch removes the checks that may break a program that uses these instructions. Signed-off-by: Petar Jovanovic --- target-mips/translate.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 98cf72d..dcecfa0 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -9294,7 +9294,6 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, opn = "movn.s"; break; case OPC_RECIP_S: - check_cop1x(ctx); { TCGv_i32 fp0 = tcg_temp_new_i32(); @@ -9306,7 +9305,6 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, opn = "recip.s"; break; case OPC_RSQRT_S: - check_cop1x(ctx); { TCGv_i32 fp0 = tcg_temp_new_i32(); @@ -9839,7 +9837,6 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, opn = "movn.d"; break; case OPC_RECIP_D: - check_cp1_64bitmode(ctx); { TCGv_i64 fp0 = tcg_temp_new_i64(); @@ -9851,7 +9848,6 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, opn = "recip.d"; break; case OPC_RSQRT_D: - check_cp1_64bitmode(ctx); { TCGv_i64 fp0 = tcg_temp_new_i64();