From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUZGX-0008Dc-H8 for qemu-devel@nongnu.org; Wed, 26 Aug 2015 07:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUZGT-0001yY-7Z for qemu-devel@nongnu.org; Wed, 26 Aug 2015 07:53:17 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:60379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUZGS-0001yL-QB for qemu-devel@nongnu.org; Wed, 26 Aug 2015 07:53:13 -0400 Message-ID: <55DDA8A5.3080006@imgtec.com> Date: Wed, 26 Aug 2015 12:53:09 +0100 From: Leon Alrae MIME-Version: 1.0 References: <1439919329-98555-1-git-send-email-petar.jovanovic@rt-rk.com> <55DCAC8F.3080108@imgtec.com> <000801d0df87$04141b70$0c3c5250$@rt-rk.com> In-Reply-To: <000801d0df87$04141b70$0c3c5250$@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 25/08/2015 23:40, Petar Jovanovic wrote: >> @@ -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. > > This would raise a "reserved instruction" exception. I am not aware that any > MIPS CPU implementation would throw an exception for e.g. "recip.d > $f21,$f11" (let me know if that is not the case), and I do not think MIPS > documentation obliges us to throw an exception either. MIPS documentation says that this operation is "UNPREDICTABLE" -- software can never depend on a result and in QEMU we usually raise RI in such cases in other *.D instructions which is quite handy (it usually indicates the "forgot to set Status.FR bit" bug in the guest). Leon