Home | History | Annotate | Download | only in ppc64

Lines Matching refs:reg

46 uc_addr (ucontext_t *uc, int reg)
50 if ((unsigned) (reg - UNW_PPC64_R0) < 32)
51 addr = &uc->uc_mcontext.gp_regs[reg - UNW_PPC64_R0];
53 else if ((unsigned) (reg - UNW_PPC64_F0) < 32)
54 addr = &uc->uc_mcontext.fp_regs[reg - UNW_PPC64_F0];
56 else if ((unsigned) (reg - UNW_PPC64_V0) < 32)
57 addr = (uc->uc_mcontext.v_regs == 0) ? NULL : &uc->uc_mcontext.v_regs->vrregs[reg - UNW_PPC64_V0][0];
63 switch (reg)
91 tdep_uc_addr (ucontext_t *uc, int reg)
93 return uc_addr (uc, reg);
161 access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val,
167 if (UNW_PPC64_F0 <= reg && reg <= UNW_PPC64_F31)
169 if (UNW_PPC64_V0 <= reg && reg <= UNW_PPC64_V31)
172 addr = uc_addr (uc, reg);
179 Debug (12, "%s <- %lx\n", unw_regname (reg), *val);
184 Debug (12, "%s -> %lx\n", unw_regname (reg), *val);
189 Debug (1, "bad register number %u\n", reg);
194 access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
200 if ((unsigned) (reg - UNW_PPC64_F0) < 0)
203 if ((unsigned) (reg - UNW_PPC64_V0) >= 32)
207 addr = uc_addr (uc, reg);
213 Debug (12, "%s <- %016Lf\n", unw_regname (reg), *val);
219 Debug (12, "%s -> %016Lf\n", unw_regname (reg), *val);
224 Debug (1, "bad register number %u\n", reg);