This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [m68k] cleanup arch/cpu selection
- From: Andreas Schwab <schwab at suse dot de>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com, Peter Barada <peter at the-baradas dot com>, Ben Elliston <bje at au1 dot ibm dot com>
- Date: Fri, 27 Jan 2006 14:54:20 +0100
- Subject: Re: [m68k] cleanup arch/cpu selection
- References: <43DA117B.9070409@codesourcery.com>
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."