[php-src] jit-arm64: ZREG_REG0 is not available in x86 build
| From: | Dmitry Stogov | Date: | Wed, 28 Apr 2021 22:08:37 +0000 |
| Subject: | [php-src] jit-arm64: ZREG_REG0 is not available in x86 build | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115941@lists.php.net to get a copy of this message | ||
Author: Dmitry Stogov (dstogov)
Date: 2021-04-29T01:08:21+03:00
Commit: https://github.com/php/php-src/commit/047f0230bf407ee17707b8bcbba844ea72045217
Raw diff: https://github.com/php/php-src/commit/047f0230bf407ee17707b8bcbba844ea72045217.diff
ZREG_REG0 is not available in x86 build
Changed paths:
M ext/opcache/jit/zend_jit_trace.c
Diff:
diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c
index 4ff86d708e35..4f1a54f67c37 100644
--- a/ext/opcache/jit/zend_jit_trace.c
+++ b/ext/opcache/jit/zend_jit_trace.c
@@ -7500,7 +7500,7 @@ int ZEND_FASTCALL zend_jit_trace_exit(uint32_t exit_num,
zend_jit_registers_buf
}
}
if (t->exit_info[exit_num].flags & ZEND_JIT_EXIT_METHOD_CALL) {
- zend_function *func = (zend_function*)regs->gpr[ZREG_REG0];
+ zend_function *func = (zend_function*)regs->gpr[ZREG_COPY];
if (UNEXPECTED(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) {
zend_string_release_ex(func->common.function_name, 0);