Skip to content

Instantly share code, notes, and snippets.

@dstogov
Created March 31, 2021 09:22
Show Gist options
  • Save dstogov/807536f4229420b983290e77e2258dba to your computer and use it in GitHub Desktop.
Save dstogov/807536f4229420b983290e77e2258dba to your computer and use it in GitHub Desktop.
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 90ffa5afb6..fcbcec268b 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -51,11 +51,11 @@
# define ZEND_VM_FP_GLOBAL_REG "%r14"
# define ZEND_VM_IP_GLOBAL_REG "%r15"
# elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__powerpc64__)
-# define ZEND_VM_FP_GLOBAL_REG "r28"
-# define ZEND_VM_IP_GLOBAL_REG "r29"
+# define ZEND_VM_FP_GLOBAL_REG "r14"
+# define ZEND_VM_IP_GLOBAL_REG "r15"
# elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__)
-# define ZEND_VM_FP_GLOBAL_REG "r28"
-# define ZEND_VM_IP_GLOBAL_REG "r29"
+# define ZEND_VM_FP_GLOBAL_REG "r14"
+# define ZEND_VM_IP_GLOBAL_REG "r15"
# elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__)
# define ZEND_VM_FP_GLOBAL_REG "x27"
# define ZEND_VM_IP_GLOBAL_REG "x28"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment