]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
disas: Make disassemble_info::target_info field const
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 29 Jan 2026 14:56:41 +0000 (15:56 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Feb 2026 13:57:34 +0000 (14:57 +0100)
Disassemblers shouldn't need writeable context, so make the
disassemble_info::target_info field const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260202222412.24923-7-philmd@linaro.org>

include/disas/dis-asm.h

index 3b50ecfb5409d3ea86122d80f521c4d2856e5f4d..911352703ea198b69dc18e212cc868dee626e873 100644 (file)
@@ -397,7 +397,7 @@ typedef struct disassemble_info {
   bool show_opcodes;
 
   /* Field intended to be used by targets in any way they deem suitable.  */
-  void *target_info;
+  const void *target_info;
 
   /* Options for Capstone disassembly.  */
   int cap_arch;