Received: from eggs.gnu.org ([2001:4830:134:3::10]:59727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9abL-0001HI-OG for qemu-devel@nongnu.org; Sun, 05 Jun 2016 12:08:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9abH-0005aX-F5 for qemu-devel@nongnu.org; Sun, 05 Jun 2016 12:08:34 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:34976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9abH-0005aC-7u for qemu-devel@nongnu.org; Sun, 05 Jun 2016 12:08:31 -0400 Received: by mail-pa0-x236.google.com with SMTP id xk1so27965015pac.2 for ; Sun, 05 Jun 2016 09:08:31 -0700 (PDT) Sender: Richard Henderson References: <1464898022-97990-1-git-send-email-rolnik@amazon.com> <1464898022-97990-4-git-send-email-rolnik@amazon.com> <8d992369-e239-d290-8f51-5846739eb7f1@twiddle.net> From: Richard Henderson Message-ID: <8b256c6d-c9ac-0514-165a-b1f1ecea2fef@twiddle.net> Date: Sun, 5 Jun 2016 09:08:28 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 04/10] target-avr: adding instructions encodings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Rolnik Cc: QEMU Developers , Michael Rolnik On 06/04/2016 10:09 PM, Michael Rolnik wrote: > 1. The code was generated. Every instruction has its own extractors. there are > several reasons > 1. I don't have to think and gather the instructions into the group. > 2. I don't have to remember what group an instruction is in > 3. there is no performance penalty. Well, that's fine. But I think it would be more appropriate for us to review the generator and input file rather than the generated code. You can write custom rules in target-avr/Makefile to handle this. r~