File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,9 @@ if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then
354
354
#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__)
355
355
# define ZEND_VM_FP_GLOBAL_REG "x27"
356
356
# define ZEND_VM_IP_GLOBAL_REG "x28"
357
+ #elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__riscv) && __riscv_xlen == 64
358
+ # define ZEND_VM_FP_GLOBAL_REG "x18"
359
+ # define ZEND_VM_IP_GLOBAL_REG "x19"
357
360
#else
358
361
# error "global register variables are not supported"
359
362
#endif
Original file line number Diff line number Diff line change 64
64
# elif defined(__GNUC__ ) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__ )
65
65
# define ZEND_VM_FP_GLOBAL_REG "x27"
66
66
# define ZEND_VM_IP_GLOBAL_REG "x28"
67
+ #elif defined(__GNUC__ ) && ZEND_GCC_VERSION >= 4008 && defined(__riscv ) && __riscv_xlen == 64
68
+ # define ZEND_VM_FP_GLOBAL_REG "x18"
69
+ # define ZEND_VM_IP_GLOBAL_REG "x19"
67
70
# endif
68
71
#endif
69
72
You can’t perform that action at this time.
0 commit comments