From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4n6I-0007WB-Op for qemu-devel@nongnu.org; Wed, 10 Jan 2007 18:43:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4n6F-0007Tk-V2 for qemu-devel@nongnu.org; Wed, 10 Jan 2007 18:43:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4n6F-0007TF-Hr for qemu-devel@nongnu.org; Wed, 10 Jan 2007 18:43:19 -0500 Received: from [193.7.176.60] (helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H4n68-0006gG-Ku for qemu-devel@nongnu.org; Wed, 10 Jan 2007 18:43:15 -0500 Date: Wed, 10 Jan 2007 23:44:11 +0000 Subject: Re: [Qemu-devel] Decode of MIPS DMFC0 and DMTC0 Message-ID: <20070110234411.GB28254@networkno.de> References: <45A54D6D.8040803@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45A54D6D.8040803@googlemail.com> From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dirk Behme Cc: qemu-devel@nongnu.org Dirk Behme wrote: > Hi, > > looking into target-mips/translate.c, in function > decode_opc() OPC_DMFC0 and OPC_DMTC0 are mapped to gen_cp0() > if MIPS64 is enabled: > > case OPC_CP0: > op1 = MASK_CP0(ctx->opcode); > switch (op1) { > case OPC_MFC0: > case OPC_MTC0: > #ifdef MIPS_HAS_MIPS64 > case OPC_DMFC0: > case OPC_DMTC0: > #endif > gen_cp0(ctx, op1, rt, rd); > break; > > But looking into gen_cp0() in same file, there is no case > statement for OPC_DMFC0 and OPC_DMTC0. Looks to me that this > results in a RI exception. > > Do I overlook anything here or is DMFC0/DMTC0 decoding > missing in gen_cp0()? You are right. Note that the MIPS64 support is highly experimental at this point, there is e.g. no proper 64bit FPU support, and no 64bit addressing. Thiemo