Lines Matching refs:M
60 printk("%04x:%04x ", M.x86.saved_cs, M.x86.saved_ip); in X86EMU_trace_regs()
61 print_encoded_bytes(M.x86.saved_cs, M.x86.saved_ip); in X86EMU_trace_regs()
79 printk("%04x:%04x ", M.x86.saved_cs, M.x86.saved_ip); in x86emu_just_disassemble()
80 print_encoded_bytes(M.x86.saved_cs, M.x86.saved_ip); in x86emu_just_disassemble()
113 tregs = M; in disassemble_forward()
133 op1 = (*sys_rdb) (((u32) M.x86.R_CS << 4) + (M.x86.R_IP++)); in disassemble_forward()
160 M.x86.enc_pos += x; in x86emu_inc_decoded_inst_len()
165 sprintf(M.x86.decoded_buf + M.x86.enc_str_pos, "%s", x); in x86emu_decode_printf()
166 M.x86.enc_str_pos += strlen(x); in x86emu_decode_printf()
173 sprintf(M.x86.decoded_buf + M.x86.enc_str_pos, "%s", temp); in x86emu_decode_printf2()
174 M.x86.enc_str_pos += strlen(temp); in x86emu_decode_printf2()
179 M.x86.enc_str_pos = 0; in x86emu_end_instr()
180 M.x86.enc_pos = 0; in x86emu_end_instr()
187 for (i = 0; i < M.x86.enc_pos; i++) { in print_encoded_bytes()
195 printk("%s", M.x86.decoded_buf); in print_decoded_instruction()
240 if (M.x86.saved_ip != breakpoint) { in x86emu_single_step()
243 M.x86.debug &= ~DEBUG_DECODE_NOPRINT_F; in x86emu_single_step()
244 M.x86.debug |= DEBUG_TRACE_F; in x86emu_single_step()
245 M.x86.debug &= ~DEBUG_BREAK_F; in x86emu_single_step()
251 offset = M.x86.saved_ip; in x86emu_single_step()
259 disassemble_forward(M.x86.saved_cs, (u16) offset, 10); in x86emu_single_step()
263 segment = M.x86.saved_cs; in x86emu_single_step()
273 segment = M.x86.saved_cs; in x86emu_single_step()
279 M.x86.debug ^= DEBUG_TRACECALL_F; in x86emu_single_step()
282 M.x86.debug ^= in x86emu_single_step()
295 M.x86.debug |= DEBUG_DECODE_NOPRINT_F; in x86emu_single_step()
297 M.x86.debug &= ~DEBUG_DECODE_NOPRINT_F; in x86emu_single_step()
299 M.x86.debug &= ~DEBUG_TRACE_F; in x86emu_single_step()
300 M.x86.debug |= DEBUG_BREAK_F; in x86emu_single_step()
305 M.x86.debug |= DEBUG_EXIT; in x86emu_single_step()
322 return M.x86.debug |= DEBUG_STEP_F | DEBUG_DECODE_F | DEBUG_TRACE_F; in X86EMU_trace_on()
327 return M.x86.debug &= ~(DEBUG_STEP_F | DEBUG_DECODE_F | DEBUG_TRACE_F); in X86EMU_trace_off()
365 printk("\tAX=%04x ", M.x86.R_AX); in x86emu_dump_regs()
366 printk("BX=%04x ", M.x86.R_BX); in x86emu_dump_regs()
367 printk("CX=%04x ", M.x86.R_CX); in x86emu_dump_regs()
368 printk("DX=%04x ", M.x86.R_DX); in x86emu_dump_regs()
369 printk("SP=%04x ", M.x86.R_SP); in x86emu_dump_regs()
370 printk("BP=%04x ", M.x86.R_BP); in x86emu_dump_regs()
371 printk("SI=%04x ", M.x86.R_SI); in x86emu_dump_regs()
372 printk("DI=%04x\n", M.x86.R_DI); in x86emu_dump_regs()
373 printk("\tDS=%04x ", M.x86.R_DS); in x86emu_dump_regs()
374 printk("ES=%04x ", M.x86.R_ES); in x86emu_dump_regs()
375 printk("SS=%04x ", M.x86.R_SS); in x86emu_dump_regs()
376 printk("CS=%04x ", M.x86.R_CS); in x86emu_dump_regs()
377 printk("IP=%04x ", M.x86.R_IP); in x86emu_dump_regs()
415 printk("\tEAX=%08x ", M.x86.R_EAX); in x86emu_dump_xregs()
416 printk("EBX=%08x ", M.x86.R_EBX); in x86emu_dump_xregs()
417 printk("ECX=%08x ", M.x86.R_ECX); in x86emu_dump_xregs()
418 printk("EDX=%08x \n", M.x86.R_EDX); in x86emu_dump_xregs()
419 printk("\tESP=%08x ", M.x86.R_ESP); in x86emu_dump_xregs()
420 printk("EBP=%08x ", M.x86.R_EBP); in x86emu_dump_xregs()
421 printk("ESI=%08x ", M.x86.R_ESI); in x86emu_dump_xregs()
422 printk("EDI=%08x\n", M.x86.R_EDI); in x86emu_dump_xregs()
423 printk("\tDS=%04x ", M.x86.R_DS); in x86emu_dump_xregs()
424 printk("ES=%04x ", M.x86.R_ES); in x86emu_dump_xregs()
425 printk("SS=%04x ", M.x86.R_SS); in x86emu_dump_xregs()
426 printk("CS=%04x ", M.x86.R_CS); in x86emu_dump_xregs()
427 printk("EIP=%08x\n\t", M.x86.R_EIP); in x86emu_dump_xregs()