]> git.proxmox.com Git - mirror_qemu.git/commitdiff
disas: Add a field for target-dependant data to disassemble_info
authorAleksandar Markovic <amarkovic@wavecomp.com>
Fri, 24 Jan 2020 16:38:47 +0000 (17:38 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Wed, 29 Jan 2020 18:28:52 +0000 (19:28 +0100)
This patch adds a field "target_info" to the structure
disassemble_info. The purpose of this field is to enable targets
to pass to disassembler code any additional data thet deem suitable.

Reviewed-by: Aleksandar Rikalo <aleksandar.rikalo@rt-rk.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <1579883929-1517-6-git-send-email-aleksandar.markovic@rt-rk.com>

include/disas/dis-asm.h

index e9c7dd8eb4da3db2cddc554b906d457bc4c23ede..f87f4688093d2f7eeefa61187c0ac9ac1c75f2c3 100644 (file)
@@ -372,6 +372,9 @@ typedef struct disassemble_info {
   /* Command line options specific to the target disassembler.  */
   char * disassembler_options;
 
+  /* Field intended to be used by targets in any way they deem suitable.  */
+  int64_t target_info;
+
   /* Options for Capstone disassembly.  */
   int cap_arch;
   int cap_mode;