root / disas.h @ cabb4d61
History | View | Annotate | Download (622 Bytes)
1 | b9adb4a6 | bellard | #ifndef _QEMU_DISAS_H
|
---|---|---|---|
2 | b9adb4a6 | bellard | #define _QEMU_DISAS_H
|
3 | b9adb4a6 | bellard | |
4 | b9adb4a6 | bellard | enum disas_type {
|
5 | b9adb4a6 | bellard | DISAS_I386_I386, |
6 | b9adb4a6 | bellard | DISAS_I386_I8086, |
7 | b9adb4a6 | bellard | DISAS_TARGET, /* whatever host is. */
|
8 | b9adb4a6 | bellard | }; |
9 | b9adb4a6 | bellard | |
10 | b9adb4a6 | bellard | /* Disassemble this for me please... (debugging). */
|
11 | b9adb4a6 | bellard | void disas(FILE *out, void *code, unsigned long size, enum disas_type type); |
12 | b9adb4a6 | bellard | |
13 | b9adb4a6 | bellard | /* Look up symbol for debugging purpose. Returns "" if unknown. */
|
14 | b9adb4a6 | bellard | const char *lookup_symbol(void *orig_addr); |
15 | b9adb4a6 | bellard | |
16 | b9adb4a6 | bellard | /* Filled in by elfload.c. Simplistic, but will do for now. */
|
17 | b9adb4a6 | bellard | extern unsigned int disas_num_syms; |
18 | b9adb4a6 | bellard | extern void *disas_symtab; /* FIXME: includes are a mess --RR */ |
19 | b9adb4a6 | bellard | extern const char *disas_strtab; |
20 | b9adb4a6 | bellard | #endif /* _QEMU_DISAS_H */ |