Explorar el Código

arm64: Add LR to list of registers to save

Tested-by: Thomas Bracht Laumann Jespersen <[email protected]>
Fixes: https://todo.sr.ht/~sircmpwn/hare/312
Michael Forney hace 4 años
padre
commit
fd33b2ef25
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      arm64/all.h
  2. 1 1
      arm64/targ.c

+ 1 - 1
arm64/all.h

@@ -14,7 +14,7 @@ enum Arm64Reg {
 
 
 	NFPR = V30 - V0 + 1,
 	NFPR = V30 - V0 + 1,
 	NGPR = SP - R0 + 1,
 	NGPR = SP - R0 + 1,
-	NGPS = R18 - R0 + 1,
+	NGPS = R18 - R0 + 1 /* LR */ + 1,
 	NFPS = (V7 - V0 + 1) + (V30 - V16 + 1),
 	NFPS = (V7 - V0 + 1) + (V30 - V16 + 1),
 	NCLR = (R28 - R19 + 1) + (V15 - V8 + 1),
 	NCLR = (R28 - R19 + 1) + (V15 - V8 + 1),
 };
 };

+ 1 - 1
arm64/targ.c

@@ -3,7 +3,7 @@
 int arm64_rsave[] = {
 int arm64_rsave[] = {
 	R0,  R1,  R2,  R3,  R4,  R5,  R6,  R7,
 	R0,  R1,  R2,  R3,  R4,  R5,  R6,  R7,
 	R8,  R9,  R10, R11, R12, R13, R14, R15,
 	R8,  R9,  R10, R11, R12, R13, R14, R15,
-	IP0, IP1, R18,
+	IP0, IP1, R18, LR,
 	V0,  V1,  V2,  V3,  V4,  V5,  V6,  V7,
 	V0,  V1,  V2,  V3,  V4,  V5,  V6,  V7,
 	V16, V17, V18, V19, V20, V21, V22, V23,
 	V16, V17, V18, V19, V20, V21, V22, V23,
 	V24, V25, V26, V27, V28, V29, V30,
 	V24, V25, V26, V27, V28, V29, V30,