RISC-V: Optimize riscv_disassemble_data printf
authorTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 2 Aug 2022 08:18:33 +0000 (17:18 +0900)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 6 Oct 2022 02:23:31 +0000 (02:23 +0000)
commite0b004c5d54dc609f6f4839a6d949775e5bafc71
tree32a0d7e74e92369a9b2d9ac382f6945c534d6cde
parent2cfc7c876d57171dbe8a16e90218be9c1f6e1f19
RISC-V: Optimize riscv_disassemble_data printf

This commit makes types of printf arguments on riscv_disassemble_data
as small as possible (as long as we can preserve the portability) to reduce
the cost of printf (especially on 32-bit host).

opcodes/ChangeLog:

* riscv-dis.c (riscv_disassemble_data): Use smallest possible type
to printing data.
opcodes/riscv-dis.c