diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-10-30 20:59:01 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-01-07 05:09:42 -1000 |
commit | f06176be76ffa96098737665ac770cac0f7bfdb8 (patch) | |
tree | 9a10529aae99481230d0bd35ed7b4f3febb6ceb5 /disas.c | |
parent | ffba3eb34b71a28bf15da85badbeb56c1be8ac45 (diff) |
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 'disas.c')
-rw-r--r-- | disas.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -299,10 +299,8 @@ char *plugin_disas(CPUState *cpu, uint64_t addr, size_t size) } /* Disassemble this for me please... (debugging). */ -void disas(FILE *out, const void *ccode, unsigned long size) +void disas(FILE *out, const void *code, unsigned long size) { - /* TODO: Push constness through the disas backends. */ - void *code = (void *)ccode; uintptr_t pc; int count; CPUDebug s; |