Lines Matching refs:reg

49 tdep_uc_addr (ucontext_t *uc, int reg, uint8_t *nat_bitnr)
51 return inlined_uc_addr (uc, reg, nat_bitnr);
126 access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val, int write,
137 switch (reg)
140 if ((ret = __uc_get_grs (uc, (reg - UNW_IA64_GR), 1, &value, &nat)))
144 ret = __uc_set_grs (uc, (reg - UNW_IA64_GR), 1, val, nat);
150 if ((ret = __uc_get_grs (uc, (reg - UNW_IA64_GR), 1, &value, &nat)))
153 mask = 1 << (reg - UNW_IA64_GR);
161 ret = __uc_set_grs (uc, (reg - UNW_IA64_GR), 1, &value, nat);
168 if (reg == UNW_IA64_AR_BSP)
171 ret = __uc_set_ar (uc, (reg - UNW_IA64_AR), *val);
173 ret = __uc_get_ar (uc, (reg - UNW_IA64_AR), val);
175 else if (reg == UNW_IA64_AR_PFS && reason == REASON_SYSCALL)
191 ret = __uc_set_ar (uc, (reg - UNW_IA64_AR), *val);
193 ret = __uc_get_ar (uc, (reg - UNW_IA64_AR), val);
199 ret = __uc_set_brs (uc, (reg - UNW_IA64_BR), 1, val);
201 ret = __uc_get_brs (uc, (reg - UNW_IA64_BR), 1, val);
234 write ? "write" : "read", unw_regname (reg), ret);
239 Debug (12, "%s <- %lx\n", unw_regname (reg), *val);
241 Debug (12, "%s -> %lx\n", unw_regname (reg), *val);
246 access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
253 switch (reg)
259 ret = __uc_set_frs (uc, (reg - UNW_IA64_FR), 1, &fp_regval);
263 ret = __uc_get_frs (uc, (reg - UNW_IA64_FR), 1, &fp_regval);
281 access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val, int write,
287 if (reg >= UNW_IA64_NAT + 4 && reg <= UNW_IA64_NAT + 7)
289 mask = ((unw_word_t) 1) << (reg - UNW_IA64_NAT);
301 Debug (12, "%s <- %lx\n", unw_regname (reg), *val);
303 Debug (12, "%s -> %lx\n", unw_regname (reg), *val);
307 addr = tdep_uc_addr (uc, reg, NULL);
319 Debug (12, "%s <- %lx\n", unw_regname (reg), *val);
324 Debug (12, "%s -> %lx\n", unw_regname (reg), *val);
329 Debug (1, "bad register number %u\n", reg);
334 access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
340 if (reg < UNW_IA64_FR || reg >= UNW_IA64_FR + 128)
343 addr = tdep_uc_addr (uc, reg, NULL);
356 unw_regname (reg), val->raw.bits[1], val->raw.bits[0]);
362 unw_regname (reg), val->raw.bits[1], val->raw.bits[0]);
367 Debug (1, "bad register number %u\n", reg);