[m68k] cleanup arch/cpu selection
Andreas Schwab
schwab@suse.de
Fri Jan 27 13:54:00 GMT 2006
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."
More information about the Binutils
mailing list