1 /* 2 * Definitions used internally in the disassembly code 3 * 4 * SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef DISAS_INTERNAL_H 8 #define DISAS_INTERNAL_H 9 10 #include "disas/dis-asm.h" 11 12 typedef struct CPUDebug { 13 struct disassemble_info info; 14 CPUState *cpu; 15 } CPUDebug; 16 17 void disas_initialize_debug(CPUDebug *s); 18 void disas_initialize_debug_target(CPUDebug *s, CPUState *cpu); 19 int disas_gstring_printf(FILE *stream, const char *fmt, ...) 20 G_GNUC_PRINTF(2, 3); 21 22 int print_insn_od_host(bfd_vma pc, disassemble_info *info); 23 int print_insn_od_target(bfd_vma pc, disassemble_info *info); 24 25 #endif 26