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