You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RISC-V: Move disassembler private data initialization
Because disassemble_info.private_data could be used not only by
riscv_disassemble_insn, this commit splits the initialization of the
private data to a separate function.
This commit now allows storing mapping symbol and/or section-related
information to riscv_private_data.
In performance perspective, it also has a penalty. However, it can be
easily paid back by other optimizations and it makes implementing
some optimizations easier.
opcodes/ChangeLog:
* riscv-dis.c (init_riscv_dis_private_data): New.
(riscv_disassemble_insn): Move private data initialization to
init_riscv_dis_private_data.
(print_insn_riscv): Start initializing the private data
instead of instruction only riscv_disassemble_insn function.
0 commit comments