From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDFHS-0005TT-6i for qemu-devel@nongnu.org; Thu, 29 Mar 2012 09:20:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDFHQ-0008RM-B7 for qemu-devel@nongnu.org; Thu, 29 Mar 2012 09:20:45 -0400 Received: from mail-qa0-f52.google.com ([209.85.216.52]:53098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDFHQ-0008RE-3p for qemu-devel@nongnu.org; Thu, 29 Mar 2012 09:20:44 -0400 Received: by qabg40 with SMTP id g40so67083qab.4 for ; Thu, 29 Mar 2012 06:20:42 -0700 (PDT) Sender: Richard Henderson Message-ID: <4F7461A5.50300@twiddle.net> Date: Thu, 29 Mar 2012 09:20:37 -0400 From: Richard Henderson MIME-Version: 1.0 References: <1332840290-24553-1-git-send-email-proljc@gmail.com> <1332840290-24553-12-git-send-email-proljc@gmail.com> <4F71FD5C.809@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V3 11/12] Handle MIPS DSP instructions in target-mips/translate.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jia Liu Cc: qemu-devel@nongnu.org, aurelien@aurel32.net On 03/27/2012 09:36 PM, Jia Liu wrote: >> > This patch should have been split as well, adding translations of the insns >> > at the same time you add the helpers. That said, the actual code looks ok. >> > > helpers can be grouped by MIPS DSP manual, BUT translations have to > grouped by opcode. > There is some difference between them, I'll try to do this. > One possibility is to add the bare skeleton of the decoding by opcode first, leaving out the actual case statements. Then add the case OPCODE: gen_helper(); break; in the patch adding the helpers. r~