Lines Matching defs:instr
202 uint32_t instr, testr1, testr2, testr3;
218 if (uread(p, &instr, 4, pc) != 0) return (-1); /* Grab instruction, return suddenly if read fails... */
220 optype = dtrace_decode_ppc(instr); /* See if we have an instruction we can probe */
222 tp->ftt_instr = instr; /* Save the instruction image */
223 testr1 = tp->ftt_bo = (uint8_t)((instr >> (31 - 10)) & 0x1F); /* Extract branch options */
224 testr2 = tp->ftt_bi = (uint8_t)((instr >> (31 - 15)) & 0x1F); /* Extract condition register bit */
225 testr3 = (instr >> (31 - 20)) & 0x1F; /* Get that last register */
226 tp->ftt_flgs = (uint8_t)(instr & 3); /* Set the absolute address and link flags */
244 target = instr & 0x03FFFFFC; /* Extract address or offset */
258 target = instr & 0x0000FFFC; /* Extract address or offset */
279 if((instr >> 26) == 24) { /* Is this the ORI nop? */
280 if((testr1 == testr2) && ((instr & 0x0000FFFF) == 0)) tp->ftt_type = ftmtNOP; /* Remember if this is a NOP instruction */
289 panic("fasttrap_tracepoint_init: invalid branch decode, inst = %08X, optype = %d\n", instr, optype);
308 uint32_t instr;
314 if (uread(p, &instr, 4, tp->ftt_pc) != 0) return (0); /* Get the instruction, but exit if not mapped */
316 // dbgTrace(0x99999999, (uint32_t)tp->ftt_pc, tp->ftt_instr, instr, 0); /* (TRACE/DEBUG) */
318 if (instr != FASTTRAP_INSTR) return (0); /* Did someone change it? If so, just leave */