1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00

Enabled global register variables for PPC

This commit is contained in:
Dmitry Stogov
2015-03-18 16:15:00 +03:00
parent 9b07ed6dcc
commit a01b5f2953
2 changed files with 6 additions and 0 deletions

View File

@@ -427,6 +427,9 @@ if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then
#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__)
# 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"
#else
# error "global register variables are not supported"
#endif

View File

@@ -2088,6 +2088,9 @@ static zend_always_inline void zend_vm_stack_extend_call_frame(zend_execute_data
# elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__)
# 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"
# endif
#endif