mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
Mon Aug 24 12:45:12 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.c: use TARGET_CPU to choose default cpu type. * te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB so that we can assemble hand-written libgcc code.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Mon Aug 24 12:45:12 1992 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
|
* tc-m68k.c: use TARGET_CPU to choose default cpu type.
|
||||||
|
|
||||||
|
* te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
|
||||||
|
so that we can assemble hand-written libgcc code.
|
||||||
|
|
||||||
Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
|
Wed Aug 19 11:20:59 1992 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
* tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
|
* tc-m68k.c, tc-m68kmote.c: the cas2 instruction is supposed to be
|
||||||
|
@ -2670,18 +2670,46 @@ md_assemble(str)
|
|||||||
int shorts_this_frag;
|
int shorts_this_frag;
|
||||||
|
|
||||||
|
|
||||||
if (current_architecture == 0)
|
if (cpu_of_arch (current_architecture) == 0)
|
||||||
current_architecture = (m68020
|
{
|
||||||
|
enum m68k_architecture cpu_type;
|
||||||
|
|
||||||
|
#ifndef TARGET_CPU
|
||||||
|
cpu_type = m68020;
|
||||||
|
#else
|
||||||
|
if (strcmp (TARGET_CPU, "m68000") == 0)
|
||||||
|
cpu_type = m68000;
|
||||||
|
else if (strcmp (TARGET_CPU, "m68010") == 0)
|
||||||
|
cpu_type = m68010;
|
||||||
|
else if (strcmp (TARGET_CPU, "m68020") == 0
|
||||||
|
|| strcmp (TARGET_CPU, "m68k") == 0)
|
||||||
|
cpu_type = m68020;
|
||||||
|
else if (strcmp (TARGET_CPU, "m68030") == 0)
|
||||||
|
cpu_type = m68030;
|
||||||
|
else if (strcmp (TARGET_CPU, "m68040") == 0)
|
||||||
|
cpu_type = m68040;
|
||||||
|
else
|
||||||
|
cpu_type = m68020;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* If float or mmu were specified, just default cpu. */
|
||||||
|
if (current_architecture != 0)
|
||||||
|
current_architecture |= cpu_type;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ((cpu_type & m68020up) != 0)
|
||||||
|
current_architecture = (cpu_type
|
||||||
#ifndef NO_68881
|
#ifndef NO_68881
|
||||||
| m68881
|
| m68881
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_68851
|
#ifndef NO_68851
|
||||||
| m68851
|
| m68851
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
/* If only float and mmu were specified, default cpu. */
|
else
|
||||||
else if (cpu_of_arch (current_architecture) == 0)
|
current_architecture = cpu_type;
|
||||||
current_architecture |= m68020;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
memset((char *)(&the_ins), '\0', sizeof(the_ins)); /* JF for paranoia sake */
|
memset((char *)(&the_ins), '\0', sizeof(the_ins)); /* JF for paranoia sake */
|
||||||
m68k_ip(str);
|
m68k_ip(str);
|
||||||
|
Reference in New Issue
Block a user