sh2 drc, don't use x29 (frame pointer) in arm64 backend

This commit is contained in:
kub 2021-03-21 22:47:56 +01:00
parent aa8a3b65f1
commit 28f83122ec

View file

@ -7,14 +7,14 @@
*/ */
#define HOST_REGS 32 #define HOST_REGS 32
// AAPCS64: params: r0-r7, return: r0-r1, temp: r8-r17, saved: r19-r29 // AAPCS64: params: r0-r7, return: r0-r1, temp: r8-r17, saved: r19-r28
// reserved: r18 (for platform use) // reserved: r18 (for platform use), r29 (frame pointer)
#define RET_REG 0 #define RET_REG 0
#define PARAM_REGS { 0, 1, 2, 3, 4, 5, 6, 7 } #define PARAM_REGS { 0, 1, 2, 3, 4, 5, 6, 7 }
#define PRESERVED_REGS { 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 } #define PRESERVED_REGS { 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }
#define TEMPORARY_REGS { 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 } #define TEMPORARY_REGS { 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }
#define CONTEXT_REG 29 #define CONTEXT_REG 19
#define STATIC_SH2_REGS { SHR_SR,28 , SHR_R(0),27 , SHR_R(1),26 } #define STATIC_SH2_REGS { SHR_SR,28 , SHR_R(0),27 , SHR_R(1),26 }
// R31 doesn't exist, it aliases either with zero or SP // R31 doesn't exist, it aliases either with zero or SP