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