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