qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.5 01/30] m68k: define m680x0 CPUs and feat


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH for-2.5 01/30] m68k: define m680x0 CPUs and features
Date: Wed, 12 Aug 2015 10:01:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0


Le 12/08/2015 01:13, Richard Henderson a écrit :
> 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.

Thank you, good idea.

Laurent



reply via email to

[Prev in Thread] Current Thread [Next in Thread]