Lines Matching defs:pc
197 fasttrap_tracepoint_init(proc_t *p, fasttrap_tracepoint_t *tp, user_addr_t pc,
218 if (uread(p, &instr, 4, pc) != 0) return (-1); /* Grab instruction, return suddenly if read fails... */
250 targpc = targpc + pc; /* Apply offset to get target address */
253 if(targpc == pc) return -1; /* Branching to self is a sin and is forbidden... */
264 targpc = targpc + pc; /* Apply offset to get target address */
267 if(targpc == pc) return -1; /* Branching to self is a sin and is forbidden... */
324 fasttrap_return_common(ppc_saved_state_t *sv, user_addr_t pc, pid_t pid, user_addr_t new_pc)
334 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
337 if (pid == tp->ftt_pid && pc == tp->ftt_pc &&
368 pc - id->fti_probe->ftp_faddr,
416 user_addr_t pc;
419 pc = sv->save_srr0; /* Remember the PC for later */
611 if (tp->ftt_retids != NULL) fasttrap_return_common(sv, pc, pid, new_pc);
621 user_addr_t pc, npc;
639 pc = sv->save_srr0; /* Get the PC of the probed instruction */
640 npc = pc + 4; /* Get next PC */
642 fasttrap_return_common(sv, pc, p->p_pid, npc);