summaryrefslogtreecommitdiffstats
path: root/include/disas
diff options
context:
space:
mode:
authorRichard Henderson2020-10-31 04:59:01 +0100
committerRichard Henderson2021-01-07 16:09:42 +0100
commitf06176be76ffa96098737665ac770cac0f7bfdb8 (patch)
tree9a10529aae99481230d0bd35ed7b4f3febb6ceb5 /include/disas
parenttcg/aarch64: Support split-wx code generation (diff)
downloadqemu-f06176be76ffa96098737665ac770cac0f7bfdb8.tar.gz
qemu-f06176be76ffa96098737665ac770cac0f7bfdb8.tar.xz
qemu-f06176be76ffa96098737665ac770cac0f7bfdb8.zip
disas: Push const down through host disassembly
Reviewed-by: Joelle van Dyne <j@getutm.app> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/disas')
-rw-r--r--include/disas/dis-asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h
index 2164762b46..d1133a4e04 100644
--- a/include/disas/dis-asm.h
+++ b/include/disas/dis-asm.h
@@ -358,7 +358,7 @@ typedef struct disassemble_info {
(bfd_vma addr, struct disassemble_info * info);
/* These are for buffer_read_memory. */
- bfd_byte *buffer;
+ const bfd_byte *buffer;
bfd_vma buffer_vma;
int buffer_length;
@@ -462,7 +462,7 @@ int print_insn_rx(bfd_vma, disassemble_info *);
#ifdef CONFIG_CAPSTONE
bool cap_disas_target(disassemble_info *info, uint64_t pc, size_t size);
-bool cap_disas_host(disassemble_info *info, void *code, size_t size);
+bool cap_disas_host(disassemble_info *info, const void *code, size_t size);
bool cap_disas_monitor(disassemble_info *info, uint64_t pc, int count);
bool cap_disas_plugin(disassemble_info *info, uint64_t pc, size_t size);
#else