|
libhd
5.0
|
Go to the source code of this file.
Data Structures | |
| struct | X86EMU_pioFuncs |
| struct | X86EMU_memFuncs |
Defines | |
| #define | X86API |
| #define | X86APIP * |
| #define | HALT_SYS() X86EMU_halt_sys() |
| #define | DEBUG_DECODE_F 0x000001 /* print decoded instruction */ |
| #define | DEBUG_TRACE_F 0x000002 /* dump regs before/after execution */ |
| #define | DEBUG_STEP_F 0x000004 |
| #define | DEBUG_DISASSEMBLE_F 0x000008 |
| #define | DEBUG_BREAK_F 0x000010 |
| #define | DEBUG_SVC_F 0x000020 |
| #define | DEBUG_SAVE_IP_CS_F 0x000040 |
| #define | DEBUG_FS_F 0x000080 |
| #define | DEBUG_PROC_F 0x000100 |
| #define | DEBUG_SYSINT_F 0x000200 /* bios system interrupts. */ |
| #define | DEBUG_TRACECALL_F 0x000400 |
| #define | DEBUG_INSTRUMENT_F 0x000800 |
| #define | DEBUG_MEM_TRACE_F 0x001000 |
| #define | DEBUG_IO_TRACE_F 0x002000 |
| #define | DEBUG_TRACECALL_REGS_F 0x004000 |
| #define | DEBUG_DECODE_NOPRINT_F 0x008000 |
| #define | DEBUG_EXIT 0x010000 |
| #define | DEBUG_SYS_F (DEBUG_SVC_F|DEBUG_FS_F|DEBUG_PROC_F) |
Functions | |
| u8 X86API | rdb (u32 addr) |
| u16 X86API | rdw (u32 addr) |
| u32 X86API | rdl (u32 addr) |
| void X86API | wrb (u32 addr, u8 val) |
| void X86API | wrw (u32 addr, u16 val) |
| void X86API | wrl (u32 addr, u32 val) |
| typedef | void (X86APIP X86EMU_intrFuncs)(int num) |
| void | X86EMU_setupMemFuncs (X86EMU_memFuncs *funcs) |
| void | X86EMU_setupPioFuncs (X86EMU_pioFuncs *funcs) |
| void | X86EMU_setupIntrFuncs (X86EMU_intrFuncs funcs[]) |
| void | X86EMU_prepareForInt (int num) |
| void | X86EMU_exec (unsigned timeout) |
| void | X86EMU_halt_sys (void) |
| void | X86EMU_trace_regs (void) |
| void | X86EMU_trace_xregs (void) |
| void | X86EMU_dump_memory (u16 seg, u16 off, u32 amt) |
| int | X86EMU_trace_on (void) |
| int | X86EMU_trace_off (void) |
Variables | |
| X86EMU_intrFuncs | _X86EMU_intrTab [256] |
| #define DEBUG_BREAK_F 0x000010 |
| #define DEBUG_DECODE_F 0x000001 /* print decoded instruction */ |
| #define DEBUG_DECODE_NOPRINT_F 0x008000 |
| #define DEBUG_DISASSEMBLE_F 0x000008 |
| #define DEBUG_EXIT 0x010000 |
Referenced by X86EMU_exec().
| #define DEBUG_FS_F 0x000080 |
| #define DEBUG_INSTRUMENT_F 0x000800 |
| #define DEBUG_IO_TRACE_F 0x002000 |
| #define DEBUG_MEM_TRACE_F 0x001000 |
| #define DEBUG_PROC_F 0x000100 |
| #define DEBUG_SAVE_IP_CS_F 0x000040 |
| #define DEBUG_STEP_F 0x000004 |
| #define DEBUG_SVC_F 0x000020 |
| #define DEBUG_SYS_F (DEBUG_SVC_F|DEBUG_FS_F|DEBUG_PROC_F) |
| #define DEBUG_SYSINT_F 0x000200 /* bios system interrupts. */ |
| #define DEBUG_TRACE_F 0x000002 /* dump regs before/after execution */ |
| #define DEBUG_TRACECALL_F 0x000400 |
| #define DEBUG_TRACECALL_REGS_F 0x004000 |
| #define HALT_SYS | ( | ) | X86EMU_halt_sys() |
Referenced by decode_rm00_address(), decode_rm01_address(), decode_rm10_address(), decode_rm_byte_register(), decode_rm_long_register(), decode_rm_seg_register(), decode_rm_word_register(), get_data_segment(), rdb(), rdl(), rdw(), wrb(), wrl(), wrw(), x86emuOp2_btX_I(), x86emuOp2_illegal_op(), x86emuOp2_opc_01(), x86emuOp_aad(), x86emuOp_aam(), x86emuOp_halt(), x86emuOp_illegal_op(), x86emuOp_mov_byte_RM_IMM(), x86emuOp_mov_word_RM_IMM(), x86emuOp_opcF6_byte_RM(), x86emuOp_opcF7_word_RM(), x86emuOp_opcFE_byte_RM(), x86emuOp_opcFF_word_RM(), and x86emuOp_pop_RM().
| #define X86API |
| #define X86APIP * |
Referenced by CallInt10(), emu_vm86(), hd_fork(), setup_io(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_esc_coprocess_d9(), x86emuOp_esc_coprocess_da(), x86emuOp_esc_coprocess_db(), x86emuOp_esc_coprocess_dc(), x86emuOp_esc_coprocess_dd(), x86emuOp_esc_coprocess_de(), x86emuOp_esc_coprocess_df(), and yy_fatal_error().
| void X86EMU_dump_memory | ( | u16 | seg, |
| u16 | off, | ||
| u32 | amt | ||
| ) |
| void X86EMU_exec | ( | unsigned | timeout | ) |
References ACCESS_FLAG, CHECK_IP_FETCH, DB, DEBUG_EXIT, F_IF, INC_DECODED_INST_LEN, INTR_HALTED, INTR_SYNCH, M, printk(), SAVE_IP_CS, u32, x86emu_check_ip_access(), x86emu_end_instr(), x86emu_intr_handle(), x86emu_optab, and X86EMU_trace_regs().
Referenced by emu_vm86().
| void X86EMU_halt_sys | ( | void | ) |
References INTR_HALTED, and M.
Referenced by x86emuOp_illegal_op().
| void X86EMU_prepareForInt | ( | int | num | ) |
References CLEAR_FLAG, F_IF, F_TF, M, mem_access_word(), and push_word().
| void X86EMU_setupIntrFuncs | ( | X86EMU_intrFuncs | funcs[] | ) |
References _X86EMU_intrTab.
Referenced by emu_vm86().
| void X86EMU_setupMemFuncs | ( | X86EMU_memFuncs * | funcs | ) |
Referenced by emu_vm86().
| void X86EMU_setupPioFuncs | ( | X86EMU_pioFuncs * | funcs | ) |
Referenced by emu_vm86().
| int X86EMU_trace_off | ( | void | ) |
| int X86EMU_trace_on | ( | void | ) |
Referenced by X86EMU_exec().
| X86EMU_intrFuncs _X86EMU_intrTab[256] |
Referenced by x86emu_intr_handle(), X86EMU_setupIntrFuncs(), x86emuOp_int3(), x86emuOp_int_IMM(), and x86emuOp_into().