diff options
author | Bob Wilson <bob.wilson@acm.org> | 2008-03-03 23:23:41 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2008-03-03 23:23:41 +0000 |
commit | 77cba8a32b4cec9c12249fa59391242c039a1842 (patch) | |
tree | d45203ee16e0e37165d0e50b0bbd552fe3c98cb8 /gas | |
parent | 332fbd6f66ba68a2452e153e830b6d5c6560e066 (diff) | |
download | gdb-77cba8a32b4cec9c12249fa59391242c039a1842.zip gdb-77cba8a32b4cec9c12249fa59391242c039a1842.tar.gz gdb-77cba8a32b4cec9c12249fa59391242c039a1842.tar.bz2 |
bfd/
* xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and
only compute its value once.
gas/
* config/tc-xtensa.c (xtensa_num_pipe_stages): New.
(md_begin): Initialize it.
(resources_conflict): Use it.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 7 | ||||
-rw-r--r-- | gas/config/tc-xtensa.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 97a7aab..80337c4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,11 @@ 2008-03-03 Sterling Augustine <sterling@tensilica.com> + Bob Wilson <bob.wilson@acm.org> + + * config/tc-xtensa.c (xtensa_num_pipe_stages): New. + (md_begin): Initialize it. + (resources_conflict): Use it. + +2008-03-03 Sterling Augustine <sterling@tensilica.com> * config/tc-xtensa.h (RELAX_XTENSA_NONE): New. diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index 1321bfb..6ef1825 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -79,6 +79,7 @@ bfd_boolean absolute_literals_supported = XSHAL_USE_ABSOLUTE_LITERALS; static vliw_insn cur_vinsn; +unsigned xtensa_num_pipe_stages; unsigned xtensa_fetch_width = XCHAL_INST_FETCH_WIDTH; static enum debug_info_type xt_saved_debug_type = DEBUG_NONE; @@ -5084,6 +5085,8 @@ md_begin (void) xtensa_rsr_lcount_opcode = xtensa_opcode_lookup (isa, "rsr.lcount"); xtensa_waiti_opcode = xtensa_opcode_lookup (isa, "waiti"); + xtensa_num_pipe_stages = xtensa_isa_num_pipe_stages (isa); + init_op_placement_info_table (); /* Set up the assembly state. */ @@ -6006,7 +6009,7 @@ resources_conflict (vliw_insn *vinsn) { xtensa_isa isa = xtensa_default_isa; rt = new_resource_table - (isa, xtensa_isa_num_pipe_stages (isa), + (isa, xtensa_num_pipe_stages, xtensa_isa_num_funcUnits (isa), (unit_num_copies_func) xtensa_funcUnit_num_copies, (opcode_num_units_func) xtensa_opcode_num_funcUnit_uses, |