• Home
  • Raw
  • Download

Lines Matching refs:insn

196 prepare_emulated_insn(probes_opcode_t insn, struct arch_probes_insn *asi,  in prepare_emulated_insn()  argument
201 u16 *thumb_insn = (u16 *)asi->insn; in prepare_emulated_insn()
205 return insn; in prepare_emulated_insn()
207 asi->insn[1] = __opcode_to_mem_arm(0xe12fff1e); /* ARM bx lr */ in prepare_emulated_insn()
209 asi->insn[1] = __opcode_to_mem_arm(0xe1a0f00e); /* mov pc, lr */ in prepare_emulated_insn()
212 if (insn < 0xe0000000) in prepare_emulated_insn()
213 insn = (insn | 0xe0000000) & ~0x10000000; in prepare_emulated_insn()
214 return insn; in prepare_emulated_insn()
222 set_emulated_insn(probes_opcode_t insn, struct arch_probes_insn *asi, in set_emulated_insn() argument
227 u16 *ip = (u16 *)asi->insn; in set_emulated_insn()
228 if (is_wide_instruction(insn)) in set_emulated_insn()
229 *ip++ = __opcode_to_mem_thumb16(insn >> 16); in set_emulated_insn()
230 *ip++ = __opcode_to_mem_thumb16(insn); in set_emulated_insn()
234 asi->insn[0] = __opcode_to_mem_arm(insn); in set_emulated_insn()
260 probes_opcode_t insn = *pinsn; in decode_regs() local
284 if ((insn ^ 0xdddddddd) & mask) in decode_regs()
290 if ((insn ^ 0xffffffff) & mask) in decode_regs()
296 if (((insn ^ 0xdddddddd) & mask) == 0) in decode_regs()
303 if (((insn ^ 0xdddddddd) & 0xdddddddd & mask) == 0) in decode_regs()
308 if (!is_writeback(insn)) in decode_regs()
314 if (((insn ^ 0xffffffff) & mask) == 0) in decode_regs()
320 insn &= ~mask; in decode_regs()
321 insn |= new_bits & mask; in decode_regs()
325 *pinsn = insn; in decode_regs()
343 int action, probes_opcode_t insn, in run_checkers() argument
359 retval = checker_func(insn, asi, h); in run_checkers()
411 probes_decode_insn(probes_opcode_t insn, struct arch_probes_insn *asi, in probes_decode_insn() argument
423 probes_opcode_t origin_insn = insn; in probes_decode_insn()
443 insn = prepare_emulated_insn(insn, asi, thumb); in probes_decode_insn()
455 if (!matched && (insn & h->mask.bits) != h->value.bits) in probes_decode_insn()
458 if (!decode_regs(&insn, regs, emulate)) in probes_decode_insn()
477 return actions[action].decoder(insn, asi, h); in probes_decode_insn()
502 return actions[action].decoder(insn, asi, h); in probes_decode_insn()
505 set_emulated_insn(insn, asi, thumb); in probes_decode_insn()