From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUITe-00087t-0f for qemu-devel@nongnu.org; Tue, 25 Aug 2015 13:57:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUITa-0002ff-RM for qemu-devel@nongnu.org; Tue, 25 Aug 2015 13:57:41 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:1513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUITa-0002eu-M2 for qemu-devel@nongnu.org; Tue, 25 Aug 2015 13:57:38 -0400 Message-ID: <55DCAC8F.3080108@imgtec.com> Date: Tue, 25 Aug 2015 18:57:35 +0100 From: Leon Alrae MIME-Version: 1.0 References: <1439919329-98555-1-git-send-email-petar.jovanovic@rt-rk.com> In-Reply-To: <1439919329-98555-1-git-send-email-petar.jovanovic@rt-rk.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-mips: remove wrong checks for recip.fmt and rsqrt.fmt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petar Jovanovic , qemu-devel@nongnu.org Cc: petar.jovanovic@imgtec.com, aurelien@aurel32.net On 18/08/2015 18:35, Petar Jovanovic wrote: > 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. This seems to be correct starting from MIPS32R2, but I'm not sure about older cores. Do we really want to remove the restrictions for them as well? > @@ -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); I think this needs check_cp1_registers() now, i.e. check for odd fpu register access when Status.FR = 0. > { > 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); same Thanks, Leon