mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
target/riscv: honour show_opcodes when disassembling
This makes the output suitable when used for plugins. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240305121005.3528075-30-alex.bennee@linaro.org>
This commit is contained in:
parent
f6e0eabdb4
commit
db7e8b1f75
1 changed files with 15 additions and 13 deletions
|
@ -5192,6 +5192,7 @@ print_insn_riscv(bfd_vma memaddr, struct disassemble_info *info, rv_isa isa)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (info->show_opcodes) {
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 2:
|
case 2:
|
||||||
(*info->fprintf_func)(info->stream, INST_FMT_2, inst);
|
(*info->fprintf_func)(info->stream, INST_FMT_2, inst);
|
||||||
|
@ -5206,6 +5207,7 @@ print_insn_riscv(bfd_vma memaddr, struct disassemble_info *info, rv_isa isa)
|
||||||
(*info->fprintf_func)(info->stream, INST_FMT_8, inst);
|
(*info->fprintf_func)(info->stream, INST_FMT_8, inst);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
disasm_inst(buf, sizeof(buf), isa, memaddr, inst,
|
disasm_inst(buf, sizeof(buf), isa, memaddr, inst,
|
||||||
(RISCVCPUConfig *)info->target_info);
|
(RISCVCPUConfig *)info->target_info);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue