[PATCH] xtensa: use property tables for correct disassembly

augustine.sterling@gmail.com augustine.sterling@gmail.com
Mon Jun 4 17:20:00 GMT 2018


On Wed, May 30, 2018 at 11:30 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:

> 2018-05-30  Max Filippov  <jcmvbkbc@gmail.com>
> bfd/
>         * elf32-xtensa.c (xtensa_read_table_entries): Make global.
>         (compute_fill_extra_space): Drop declaration. Rename function to
>         xtensa_compute_fill_extra_space.
>         (compute_ebb_actions, remove_dead_literal): Update references to
>         compute_fill_extra_space.
>
> include/
>         * elf/xtensa.h (xtensa_read_table_entries)
>         (xtensa_compute_fill_extra_space): New declarations.
>
> opcodes/
>         * xtensa-dis.c (bfd.h, elf/xtensa.h): New includes.
>         (dis_private): Add new fields for property section tracking.
>         (xtensa_coalesce_insn_tables, xtensa_find_table_entry)
>         (xtensa_instruction_fits): New functions.
>         (fetch_data): Bump minimal fetch size to 4.
>         (print_insn_xtensa): Make struct dis_private static.
>         Load and prepare property table on section change.
>         Don't disassemble literals. Don't disassemble instructions that
>         cross property table boundaries.
>

Approved. Thanks.



More information about the Binutils mailing list