Lines Matching refs:x86_cpu
407 X86CPU *x86_cpu = X86_CPU(cs); in do_patch_instruction() local
418 patch_byte(x86_cpu, ip, 0x50 + modrm_reg(opcode[1])); /* push reg */ in do_patch_instruction()
419 patch_call(x86_cpu, ip + 1, handlers->set_tpr); in do_patch_instruction()
422 patch_byte(x86_cpu, ip, 0x90); in do_patch_instruction()
423 patch_call(x86_cpu, ip + 1, handlers->get_tpr[modrm_reg(opcode[1])]); in do_patch_instruction()
426 patch_call(x86_cpu, ip, handlers->get_tpr[0]); in do_patch_instruction()
429 patch_call(x86_cpu, ip, handlers->set_tpr_eax); in do_patch_instruction()
432 patch_byte(x86_cpu, ip, 0x68); /* push imm32 */ in do_patch_instruction()
435 patch_call(x86_cpu, ip + 5, handlers->set_tpr); in do_patch_instruction()
438 patch_byte(x86_cpu, ip, 0x50); /* push eax */ in do_patch_instruction()
439 patch_call(x86_cpu, ip + 1, handlers->get_tpr_stack); in do_patch_instruction()