about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/setjmp/powerpc/longjmp.S2
-rw-r--r--src/setjmp/powerpc/setjmp.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/setjmp/powerpc/longjmp.S b/src/setjmp/powerpc/longjmp.S
index 34aecb4c..611389fe 100644
--- a/src/setjmp/powerpc/longjmp.S
+++ b/src/setjmp/powerpc/longjmp.S
@@ -44,7 +44,7 @@ longjmp:
 	.long __hwcap-.
 1:	mflr 4
 	lwz 5, 0(4)
-	add 4, 4, 5
+	lwzx 4, 4, 5
 	andis. 4, 4, 0x80
 	beq 1f
 	.long 0x11c35b01 /* evldd 14,88(3) */
diff --git a/src/setjmp/powerpc/setjmp.S b/src/setjmp/powerpc/setjmp.S
index 413e6a81..f1fcce33 100644
--- a/src/setjmp/powerpc/setjmp.S
+++ b/src/setjmp/powerpc/setjmp.S
@@ -44,7 +44,7 @@ setjmp:
 	.long __hwcap-.
 1:	mflr 4
 	lwz 5, 0(4)
-	add 4, 4, 5
+	lwzx 4, 4, 5
 	andis. 4, 4, 0x80
 	beq 1f
 	.long 0x11c35b21 /* evstdd 14,88(3) */