diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2017-09-14 09:51:06 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2017-10-25 11:55:21 +0200 |
commit | 110f6c703bb6d99419196c3c5e369880c994d0bd (patch) | |
tree | 1c9d1b37b95a2a29b2a4631d2945978e719ab244 /disas.c | |
parent | b666d2a41a177c70a72f4b54d6cac71494d143d0 (diff) | |
download | qemu-110f6c703bb6d99419196c3c5e369880c994d0bd.zip qemu-110f6c703bb6d99419196c3c5e369880c994d0bd.tar.gz qemu-110f6c703bb6d99419196c3c5e369880c994d0bd.tar.bz2 |
arm: Support Capstone in disas_set_info
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'disas.c')
-rw-r--r-- | disas.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -450,6 +450,7 @@ void disas(FILE *out, void *code, unsigned long size) print_insn = print_insn_ppc; #elif defined(__aarch64__) && defined(CONFIG_ARM_A64_DIS) print_insn = print_insn_arm_a64; + s.info.cap_arch = CS_ARCH_ARM64; #elif defined(__alpha__) print_insn = print_insn_alpha; #elif defined(__sparc__) @@ -457,6 +458,8 @@ void disas(FILE *out, void *code, unsigned long size) s.info.mach = bfd_mach_sparc_v9b; #elif defined(__arm__) print_insn = print_insn_arm; + s.info.cap_arch = CS_ARCH_ARM; + /* TCG only generates code for arm mode. */ #elif defined(__MIPSEB__) print_insn = print_insn_big_mips; #elif defined(__MIPSEL__) |