Lines Matching refs:instr
195 static bool opcode_matches(uint8_t *opcode, const TPRInstruction *instr) in opcode_matches() argument
197 return opcode[0] == instr->opcode && in opcode_matches()
198 (!(instr->flags & TPR_INSTR_ABS_MODRM) || is_abs_modrm(opcode[1])) && in opcode_matches()
199 (!(instr->flags & TPR_INSTR_MATCH_MODRM_REG) || in opcode_matches()
200 modrm_reg(opcode[1]) == instr->modrm_reg); in opcode_matches()
207 const TPRInstruction *instr; in evaluate_tpr_instruction() local
238 instr = &tpr_instr[i]; in evaluate_tpr_instruction()
239 if (instr->access != access) { in evaluate_tpr_instruction()
242 if (cpu_memory_rw_debug(cs, ip - instr->length, opcode, in evaluate_tpr_instruction()
246 if (opcode_matches(opcode, instr)) { in evaluate_tpr_instruction()
247 ip -= instr->length; in evaluate_tpr_instruction()
257 instr = &tpr_instr[i]; in evaluate_tpr_instruction()
258 if (opcode_matches(opcode, instr)) { in evaluate_tpr_instruction()
270 if (cpu_memory_rw_debug(cs, ip + instr->addr_offset, in evaluate_tpr_instruction()