summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--arm64/all.h2
-rw-r--r--arm64/targ.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arm64/all.h b/arm64/all.h
index 0b3073a..ff2b3ff 100644
--- a/arm64/all.h
+++ b/arm64/all.h
@@ -14,7 +14,7 @@ enum Arm64Reg {
 
 	NFPR = V30 - V0 + 1,
 	NGPR = SP - R0 + 1,
-	NGPS = R18 - R0 + 1,
+	NGPS = R18 - R0 + 1 /* LR */ + 1,
 	NFPS = (V7 - V0 + 1) + (V30 - V16 + 1),
 	NCLR = (R28 - R19 + 1) + (V15 - V8 + 1),
 };
diff --git a/arm64/targ.c b/arm64/targ.c
index ead6932..99c4347 100644
--- a/arm64/targ.c
+++ b/arm64/targ.c
@@ -3,7 +3,7 @@
 int arm64_rsave[] = {
 	R0,  R1,  R2,  R3,  R4,  R5,  R6,  R7,
 	R8,  R9,  R10, R11, R12, R13, R14, R15,
-	IP0, IP1, R18,
+	IP0, IP1, R18, LR,
 	V0,  V1,  V2,  V3,  V4,  V5,  V6,  V7,
 	V16, V17, V18, V19, V20, V21, V22, V23,
 	V24, V25, V26, V27, V28, V29, V30,