]> granicus.if.org Git - php/commitdiff
Add gcc global register for aarch64
authorCrazyMiaoo <49779897+CrazyMiaoo@users.noreply.github.com>
Mon, 22 Apr 2019 11:29:30 +0000 (14:29 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 22 Apr 2019 11:29:30 +0000 (14:29 +0300)
Zend/Zend.m4
Zend/zend_execute.c

index 08f000dd2b5d7f40986e08aab70edc1ae1ef0bfd..9aeb79d31f05d206d1d0c029d6e21c004df59989 100644 (file)
@@ -362,6 +362,9 @@ if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then
 #elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__)
 # define ZEND_VM_FP_GLOBAL_REG "r28"
 # define ZEND_VM_IP_GLOBAL_REG "r29"
+#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__)
+# define ZEND_VM_FP_GLOBAL_REG "x27"
+# define ZEND_VM_IP_GLOBAL_REG "x28"
 #else
 # error "global register variables are not supported"
 #endif
index 41a20ab4d5846fd53fc9c7f1bac7e37bc68508d5..39cf01e5afafadde03e25c945d136d1548b9751d 100644 (file)
@@ -56,6 +56,9 @@
 # elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__)
 #  define ZEND_VM_FP_GLOBAL_REG "r28"
 #  define ZEND_VM_IP_GLOBAL_REG "r29"
+# elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__)
+#  define ZEND_VM_FP_GLOBAL_REG "x27"
+#  define ZEND_VM_IP_GLOBAL_REG "x28"
 # endif
 #endif