]> git.proxmox.com Git - mirror_qemu.git/blobdiff - disas.c
disas: Push const down through host disassembly
[mirror_qemu.git] / disas.c
diff --git a/disas.c b/disas.c
index de1de7be94a3b5fa461689c36dcb33b2b88f9d6c..a61f95b580b8daac2361933a3f2f0fc89b0b661b 100644 (file)
--- a/disas.c
+++ b/disas.c
@@ -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;