diff options
author | Song Gao <gaosong@loongson.cn> | 2022-06-06 20:43:06 +0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-06 18:09:03 +0000 |
commit | aae1746c726d6cc54e555bcca21e1eb5b56c21bf (patch) | |
tree | d5712d37fc82e31d97bafed755a19953e5331b31 /include | |
parent | ee86bd58b85ce9afe727b6664ba597acc371bdf2 (diff) | |
download | qemu-aae1746c726d6cc54e555bcca21e1eb5b56c21bf.zip qemu-aae1746c726d6cc54e555bcca21e1eb5b56c21bf.tar.gz qemu-aae1746c726d6cc54e555bcca21e1eb5b56c21bf.tar.bz2 |
target/loongarch: Add disassembler
This patch adds support for disassembling via option '-d in_asm'.
Signed-off-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220606124333.2060567-17-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/disas/dis-asm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h index fc7cb7a..64247ec 100644 --- a/include/disas/dis-asm.h +++ b/include/disas/dis-asm.h @@ -253,6 +253,7 @@ enum bfd_architecture #define bfd_mach_rx 0x75 #define bfd_mach_rx_v2 0x76 #define bfd_mach_rx_v3 0x77 + bfd_arch_loongarch, bfd_arch_last }; #define bfd_mach_s390_31 31 @@ -458,6 +459,7 @@ int print_insn_riscv64 (bfd_vma, disassemble_info*); int print_insn_riscv128 (bfd_vma, disassemble_info*); int print_insn_rx(bfd_vma, disassemble_info *); int print_insn_hexagon(bfd_vma, disassemble_info *); +int print_insn_loongarch(bfd_vma, disassemble_info *); #ifdef CONFIG_CAPSTONE bool cap_disas_target(disassemble_info *info, uint64_t pc, size_t size); |