From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPIkC-0004Za-9u for qemu-devel@nongnu.org; Tue, 11 Aug 2015 19:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPIk9-0004MD-3O for qemu-devel@nongnu.org; Tue, 11 Aug 2015 19:14:08 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:34486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPIk8-0004Ld-VY for qemu-devel@nongnu.org; Tue, 11 Aug 2015 19:14:05 -0400 Received: by qkcs67 with SMTP id s67so170316qkc.1 for ; Tue, 11 Aug 2015 16:14:04 -0700 (PDT) Sender: Richard Henderson References: <1439151229-27747-1-git-send-email-laurent@vivier.eu> <1439151229-27747-2-git-send-email-laurent@vivier.eu> From: Richard Henderson Message-ID: <55CA81B7.9080307@twiddle.net> Date: Tue, 11 Aug 2015 16:13:59 -0700 MIME-Version: 1.0 In-Reply-To: <1439151229-27747-2-git-send-email-laurent@vivier.eu> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.5 01/30] m68k: define m680x0 CPUs and features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, Andreas Schwab , gerg@uclinux.org On 08/09/2015 01:13 PM, Laurent Vivier wrote: > INSN(undef, 0000, 0000, CF_ISA_A); > + INSN(undef, 0000, 0000, M68000); > INSN(arith_im, 0080, fff8, CF_ISA_A); > + INSN(arith_im, 0000, ff00, M68000); > + INSN(undef, 00c0, ffc0, M68000); > INSN(bitrev, 00c0, fff8, CF_ISA_APLUSC); > INSN(bitop_reg, 0100, f1c0, CF_ISA_A); > + INSN(bitop_reg, 0100, f1c0, M68000); > INSN(bitop_reg, 0140, f1c0, CF_ISA_A); > + INSN(bitop_reg, 0140, f1c0, M68000); There's a *lot* of repetition in here. Can we also introduce a BASE() macro that's like INSN() except that it doesn't bother checking m68k_feature? That way if both CF_ISA_A and M68000 are set, we don't have to duplicate the entry. r~