root / disas.h @ d03703c8
History | View | Annotate | Download (1.2 kB)
1 | b9adb4a6 | bellard | #ifndef _QEMU_DISAS_H
|
---|---|---|---|
2 | b9adb4a6 | bellard | #define _QEMU_DISAS_H
|
3 | b9adb4a6 | bellard | |
4 | 376253ec | aliguori | #include "qemu-common.h" |
5 | 376253ec | aliguori | |
6 | ca20cf32 | Blue Swirl | #ifdef NEED_CPU_H
|
7 | b9adb4a6 | bellard | /* Disassemble this for me please... (debugging). */
|
8 | c27004ec | bellard | void disas(FILE *out, void *code, unsigned long size); |
9 | 83b34f8b | bellard | void target_disas(FILE *out, target_ulong code, target_ulong size, int flags); |
10 | 376253ec | aliguori | |
11 | 376253ec | aliguori | /* The usual mess... FIXME: Remove this condition once dyngen-exec.h is gone */
|
12 | 376253ec | aliguori | #ifndef __DYNGEN_EXEC_H__
|
13 | 376253ec | aliguori | void monitor_disas(Monitor *mon, CPUState *env,
|
14 | 3476562d | bellard | target_ulong pc, int nb_insn, int is_physical, int flags); |
15 | 376253ec | aliguori | #endif
|
16 | b9adb4a6 | bellard | |
17 | b9adb4a6 | bellard | /* Look up symbol for debugging purpose. Returns "" if unknown. */
|
18 | c27004ec | bellard | const char *lookup_symbol(target_ulong orig_addr); |
19 | ca20cf32 | Blue Swirl | #endif
|
20 | b9adb4a6 | bellard | |
21 | 49918a75 | pbrook | struct syminfo;
|
22 | 49918a75 | pbrook | struct elf32_sym;
|
23 | 49918a75 | pbrook | struct elf64_sym;
|
24 | 49918a75 | pbrook | |
25 | 9f9f0309 | Paul Brook | #if defined(CONFIG_USER_ONLY)
|
26 | 9f9f0309 | Paul Brook | typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_ulong orig_addr); |
27 | 9f9f0309 | Paul Brook | #else
|
28 | c227f099 | Anthony Liguori | typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_phys_addr_t orig_addr); |
29 | 9f9f0309 | Paul Brook | #endif
|
30 | 49918a75 | pbrook | |
31 | 49918a75 | pbrook | struct syminfo {
|
32 | 49918a75 | pbrook | lookup_symbol_t lookup_symbol; |
33 | e80cfcfc | bellard | unsigned int disas_num_syms; |
34 | 49918a75 | pbrook | union {
|
35 | 49918a75 | pbrook | struct elf32_sym *elf32;
|
36 | 49918a75 | pbrook | struct elf64_sym *elf64;
|
37 | 49918a75 | pbrook | } disas_symtab; |
38 | e80cfcfc | bellard | const char *disas_strtab; |
39 | e80cfcfc | bellard | struct syminfo *next;
|
40 | 49918a75 | pbrook | }; |
41 | 49918a75 | pbrook | |
42 | 49918a75 | pbrook | /* Filled in by elfload.c. Simplistic, but will do for now. */
|
43 | 49918a75 | pbrook | extern struct syminfo *syminfos; |
44 | e80cfcfc | bellard | |
45 | b9adb4a6 | bellard | #endif /* _QEMU_DISAS_H */ |