]> git.proxmox.com Git - qemu.git/blame - disas.h
Add machine type aliases
[qemu.git] / disas.h
CommitLineData
b9adb4a6
FB
1#ifndef _QEMU_DISAS_H
2#define _QEMU_DISAS_H
3
376253ec
AL
4#include "qemu-common.h"
5
b9adb4a6 6/* Disassemble this for me please... (debugging). */
c27004ec 7void disas(FILE *out, void *code, unsigned long size);
83b34f8b 8void target_disas(FILE *out, target_ulong code, target_ulong size, int flags);
376253ec
AL
9
10/* The usual mess... FIXME: Remove this condition once dyngen-exec.h is gone */
11#ifndef __DYNGEN_EXEC_H__
12void monitor_disas(Monitor *mon, CPUState *env,
3476562d 13 target_ulong pc, int nb_insn, int is_physical, int flags);
376253ec 14#endif
b9adb4a6
FB
15
16/* Look up symbol for debugging purpose. Returns "" if unknown. */
c27004ec 17const char *lookup_symbol(target_ulong orig_addr);
b9adb4a6 18
49918a75
PB
19struct syminfo;
20struct elf32_sym;
21struct elf64_sym;
22
23typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_ulong orig_addr);
24
25struct syminfo {
26 lookup_symbol_t lookup_symbol;
e80cfcfc 27 unsigned int disas_num_syms;
49918a75
PB
28 union {
29 struct elf32_sym *elf32;
30 struct elf64_sym *elf64;
31 } disas_symtab;
e80cfcfc
FB
32 const char *disas_strtab;
33 struct syminfo *next;
49918a75
PB
34};
35
36/* Filled in by elfload.c. Simplistic, but will do for now. */
37extern struct syminfo *syminfos;
e80cfcfc 38
b9adb4a6 39#endif /* _QEMU_DISAS_H */