[Ada] Fix inaccuracies in signal handler trampoline for aarch64-vxworks
gcc/ada/ * sigtramp-vxworks-target.inc (__aarch64__): Sync REGNO_PC_OFFSET with the back-end DWARF_ALT_FRAME_RETURN_COLUMN. In CFI_COMMON_REGS, leave r18 alone, VxWorks private.
This commit is contained in:
parent
c37c13e15e
commit
548280b996
@ -100,7 +100,7 @@
|
||||
#define FUNCTION "%function"
|
||||
|
||||
#ifdef __aarch64__
|
||||
#define REGNO_PC_OFFSET 80 /* aka V16, a scratch register */
|
||||
#define REGNO_PC_OFFSET 96 /* DWARF_ALT_FRAME_RETURN_COLUMN */
|
||||
#else
|
||||
#define REGNO_PC_OFFSET 15 /* PC_REGNUM */
|
||||
#endif
|
||||
@ -375,7 +375,7 @@ TCR(COMMON_CFI(G_REG_OFFSET(14))) \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(15))) \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(16))) \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(17))) \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(18))) \
|
||||
CR("# Leave alone R18, VxWorks reserved\n") \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(19))) \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(20))) \
|
||||
TCR(COMMON_CFI(G_REG_OFFSET(21))) \
|
||||
|
Loading…
Reference in New Issue
Block a user