From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4k7y-0001Bp-EL for qemu-devel@nongnu.org; Wed, 10 Jan 2007 15:32:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4k7w-0001A6-Ss for qemu-devel@nongnu.org; Wed, 10 Jan 2007 15:32:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4k7w-00019y-ND for qemu-devel@nongnu.org; Wed, 10 Jan 2007 15:32:52 -0500 Received: from [64.233.182.186] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4k7w-0008F8-D6 for qemu-devel@nongnu.org; Wed, 10 Jan 2007 15:32:52 -0500 Received: by nf-out-0910.google.com with SMTP id c31so1063517nfb for ; Wed, 10 Jan 2007 12:32:51 -0800 (PST) Message-ID: <45A54D6D.8040803@googlemail.com> Date: Wed, 10 Jan 2007 21:32:45 +0100 From: Dirk Behme MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Decode of MIPS DMFC0 and DMTC0 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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()? Dirk