/* Useful register numbers. */
-#define LR_REGNO 65
-#define CR2_REGNO 70
-#define XER_REGNO 76
-#define FIRST_ALTIVEC_REGNO 77
-#define VRSAVE_REGNO 109
-#define VSCR_REGNO 110
+#define R_LR 65
+#define R_CR2 70
+#define R_XER 76
+#define R_FIRST_ALTIVEC 77
+#define R_VRSAVE 109
+#define R_VSCR 110
/* If the current unwind info (FS) does not contain explicit info
saving R2, then we have to do a minor amount of code reading to
{ \
unsigned int *insn \
= (unsigned int *) \
- _Unwind_GetGR ((CTX), LR_REGNO); \
+ _Unwind_GetGR ((CTX), R_LR); \
if (*insn == 0xE8410028) \
_Unwind_SetGRPtr ((CTX), 2, (CTX)->cfa + 40); \
} \
{ \
unsigned int *insn \
= (unsigned int *) \
- _Unwind_GetGR ((CTX), LR_REGNO); \
+ _Unwind_GetGR ((CTX), R_LR); \
if (*insn == 0x80410014) \
_Unwind_SetGRPtr ((CTX), 2, (CTX)->cfa + 20); \
} \
if (i != __LIBGCC_STACK_POINTER_REGNUM__)
REGISTER_CFA_OFFSET_FOR (fs, i, &mctx->gpr[i], new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, CR2_REGNO, &mctx->cr, new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, XER_REGNO, &mctx->xer, new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, LR_REGNO, &mctx->lr, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_CR2, &mctx->cr, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_XER, &mctx->xer, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_LR, &mctx->lr, new_cfa);
fs->retaddr_column = RETURN_COLUMN;
REGISTER_CFA_OFFSET_FOR (fs, RETURN_COLUMN, &mctx->iar, new_cfa);
for (i = 0; i < 32; i++)
REGISTER_CFA_OFFSET_FOR
- (fs, i+FIRST_ALTIVEC_REGNO, &vstate->regs[i], new_cfa);
+ (fs, i+R_FIRST_ALTIVEC, &vstate->regs[i], new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, VSCR_REGNO, &vstate->vscr, new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, VRSAVE_REGNO, &vstate->vrsave, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_VSCR, &vstate->vscr, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_VRSAVE, &vstate->vrsave, new_cfa);
}
}