Skip to content

riscv_dis_use_xlen_on_addr_addiw

Tsukasa OI edited this page Aug 5, 2022 · 3 revisions

Disassembler: Use xlen on ADDIW address sequence

Issue Solved

Because XLEN for the disassembler is independently computed in the riscv_disassemble_insn function and stored as a variable xlen, we don't need to use info->mach to check whether XLEN is larger than 32.

This patch uses xlen instead of info->mach.

Clone this wiki locally