fix Xtensa branch alignment code
Bob Wilson
bwilson@tensilica.com
Tue Apr 5 23:37:00 GMT 2005
This patch fixes a bug in the branch alignment code of the Xtensa GAS port. The
code was checking the width of the Xtensa processor's instruction fetch
interface to see how much alignment is required to avoid a stall for taken
branches. This is correct as long as the current section is aligned at least as
much as the fetch width, but the code was not checking the section alignment.
Tested with an xtensa-elf target and committed on the mainline. I will put it
on the branch, too.
2005-04-05 Sterling Augustine <sterling@tensilica.com>
Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (branch_align_power): New.
(xtensa_find_unaligned_branch_targets, get_aligned_diff,
future_alignment_required): Use branch_align_power to check section
alignment as well as xtensa_fetch_width when aligning branch targets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-xtensa-branch-align.diff
Type: text/x-patch
Size: 3529 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050405/1d299842/attachment.bin>
More information about the Binutils
mailing list