diff options
| author | Alex Bennée | 2019-05-22 11:27:14 +0200 |
|---|---|---|
| committer | Alex Bennée | 2019-10-28 16:12:38 +0100 |
| commit | cbafa2362ab8d96af39d6b01a79ea4ed16d47dda (patch) | |
| tree | 57c3f69e05f35e4fd9c0f5aa11a5ad7a3685de1d /include/disas | |
| parent | plugin: expand the plugin_init function to include an info block (diff) | |
| download | qemu-cbafa2362ab8d96af39d6b01a79ea4ed16d47dda.tar.gz qemu-cbafa2362ab8d96af39d6b01a79ea4ed16d47dda.tar.xz qemu-cbafa2362ab8d96af39d6b01a79ea4ed16d47dda.zip | |
plugin: add qemu_plugin_insn_disas helper
Give the plugins access to the QEMU dissasembler so they don't have to
re-invent the wheel. We generate a warning when there are spare bytes
in the decode buffer. This is usually due to the front end loading in
more bytes than decoded.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/disas')
| -rw-r--r-- | include/disas/disas.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/disas/disas.h b/include/disas/disas.h index ba47e9197c..36c33f6f19 100644 --- a/include/disas/disas.h +++ b/include/disas/disas.h @@ -14,6 +14,8 @@ void target_disas(FILE *out, CPUState *cpu, target_ulong code, void monitor_disas(Monitor *mon, CPUState *cpu, target_ulong pc, int nb_insn, int is_physical); +char *plugin_disas(CPUState *cpu, uint64_t addr, size_t size); + /* Look up symbol for debugging purpose. Returns "" if unknown. */ const char *lookup_symbol(target_ulong orig_addr); #endif |
