summaryrefslogtreecommitdiff
path: root/include/disas/bfd.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2017-09-14 09:41:12 -0700
committerRichard Henderson <richard.henderson@linaro.org>2017-10-25 11:55:09 +0200
commit8ca80760bf1280be87710c6a1ef5f38d8f2f12bf (patch)
treea886e330e926dd682068ce7ed7730aec652e335a /include/disas/bfd.h
parent1d48474d8e9eff9d08ad43477043d95789b96a40 (diff)
downloadqemu-8ca80760bf1280be87710c6a1ef5f38d8f2f12bf.tar.gz
disas: Support the Capstone disassembler library
If configured, prefer this over our rather dated copy of the GPLv2-only binutils. This will be especially apparent with the proposed vector extensions to TCG, as disas/i386.c does not handle AVX. Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/disas/bfd.h')
-rw-r--r--include/disas/bfd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/disas/bfd.h b/include/disas/bfd.h
index 2852f80ed6..1f88c9e9d5 100644
--- a/include/disas/bfd.h
+++ b/include/disas/bfd.h
@@ -371,6 +371,10 @@ typedef struct disassemble_info {
/* Command line options specific to the target disassembler. */
char * disassembler_options;
+ /* Options for Capstone disassembly. */
+ int cap_arch;
+ int cap_mode;
+
} disassemble_info;