2023-05-09 19:14:36 +03:00
|
|
|
/*
|
|
|
|
* Definitions used internally in the disassembly code
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DISAS_INTERNAL_H
|
|
|
|
#define DISAS_INTERNAL_H
|
|
|
|
|
|
|
|
#include "disas/dis-asm.h"
|
|
|
|
|
|
|
|
typedef struct CPUDebug {
|
|
|
|
struct disassemble_info info;
|
|
|
|
CPUState *cpu;
|
|
|
|
} CPUDebug;
|
|
|
|
|
2024-04-05 09:46:32 +03:00
|
|
|
void disas_initialize_debug(CPUDebug *s);
|
2023-05-09 19:14:36 +03:00
|
|
|
void disas_initialize_debug_target(CPUDebug *s, CPUState *cpu);
|
|
|
|
int disas_gstring_printf(FILE *stream, const char *fmt, ...)
|
|
|
|
G_GNUC_PRINTF(2, 3);
|
|
|
|
|
2024-04-05 09:46:32 +03:00
|
|
|
int print_insn_od_host(bfd_vma pc, disassemble_info *info);
|
|
|
|
int print_insn_od_target(bfd_vma pc, disassemble_info *info);
|
|
|
|
|
2023-05-09 19:14:36 +03:00
|
|
|
#endif
|