* config/tc-mn10300.c (HAVE_AM30): Define.
(md_assemble): Use it.
This commit is contained in:
parent
4d85706b80
commit
aa15f6f7b0
|
@ -1,3 +1,8 @@
|
||||||
|
2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-mn10300.c (HAVE_AM30): Define.
|
||||||
|
(md_assemble): Use it.
|
||||||
|
|
||||||
2000-04-19 Alan Modra <alan@linuxcare.com.au>
|
2000-04-19 Alan Modra <alan@linuxcare.com.au>
|
||||||
|
|
||||||
* config/obj-elf.c (obj_elf_change_section): Check for changed
|
* config/obj-elf.c (obj_elf_change_section): Check for changed
|
||||||
|
|
|
@ -125,6 +125,7 @@ const pseudo_typeS md_pseudo_table[] =
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HAVE_AM33 (current_machine == AM33)
|
#define HAVE_AM33 (current_machine == AM33)
|
||||||
|
#define HAVE_AM30 (current_machine == AM30)
|
||||||
|
|
||||||
/* Opcode hash table. */
|
/* Opcode hash table. */
|
||||||
static struct hash_control *mn10300_hash;
|
static struct hash_control *mn10300_hash;
|
||||||
|
@ -944,7 +945,8 @@ md_assemble (str)
|
||||||
/* If the instruction is not available on the current machine
|
/* If the instruction is not available on the current machine
|
||||||
then it can not possibly match. */
|
then it can not possibly match. */
|
||||||
if (opcode->machine
|
if (opcode->machine
|
||||||
&& !(opcode->machine == AM33 && HAVE_AM33))
|
&& !(opcode->machine == AM33 && HAVE_AM33)
|
||||||
|
&& !(opcode->machine == AM30 && HAVE_AM30))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
for (op_idx = 1, opindex_ptr = opcode->operands;
|
for (op_idx = 1, opindex_ptr = opcode->operands;
|
||||||
|
|
Loading…
Reference in New Issue