* config/tc-mips.c (MAX_NOPS): New macro.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Mar 2005 09:45:27 +0000 (09:45 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Mar 2005 09:45:27 +0000 (09:45 +0000)
commit2db164c7d8757c5fdb06a92f0b5fa9ff8fbfc767
treeae736f6f8dccae3358399b9dba7205f7ea2a945f
parent9296497f4b8726001fa9174bc1293e5efd90863b
* config/tc-mips.c (MAX_NOPS): New macro.
(history): Resize to 1 + MAX_NOPS.
(fix_vr4120_class): New enumeration.
(vr4120_conflicts): New variable.
(init_vr4120_conflicts): New function.
(md_begin): Call it.
(insn_uses_reg): Constify first argument.
(classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
(nops_for_insn_or_target): New functions.
(append_insn): Use the new nops_for_* functions instead of inline
delay checks.  Generalize prev_nop_frag handling to handle an
arbitrary history length.  Insert nops into the history buffer
once the number of nops in prev_nop_frag is fixed.
(emit_delays): Use nops_for_insn instead of inline delay checks.
gas/ChangeLog
gas/config/tc-mips.c