This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [m68k] cleanup arch/cpu selection


Nathan Sidwell <nathan@codesourcery.com> writes:

> *** include/elf/m68k.h	10 May 2005 10:21:10 -0000	1.10
> --- include/elf/m68k.h	27 Jan 2006 12:07:51 -0000
> *************** END_RELOC_NUMBERS (R_68K_max)
> *** 56,59 ****
> --- 56,73 ----
>   #define EF_M68000   0x01000000
>   #define EF_CFV4E    0x00008000
>   
> + /* We use the bottom 8 bits to encode information about the
> +    coldfire variant.  */
> + #define EF_ISA_MASK     0x07  /* Which ISA */
> + #define EF_ISA_A	0x01
> + #define EF_ISA_A_PLUS   0x02
> + #define EF_ISA_B	0x03
> + #define EF_HW_DIV	0x08  /* Has HW divide */
> + #define EF_MAC_MASK	0x30 
> + #define EF_MAC		0x10  /* Has MAC */
> + #define EF_EMAC		0x20  /* Has EMAC */
> + #define EF_USP		0x40  /* Has USP insns */
> + #define EF_FLOAT	0x80  /* Has float insns */
> + #define EF_CF_MASK	0xFF
> +      
>   #endif

IMHO these should be named EF_68K_ISA_MASK, etc., since they are m68k
specific.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]