diff --git a/ext/opcache/jit/tls/zend_jit_tls_aarch64.c b/ext/opcache/jit/tls/zend_jit_tls_aarch64.c index 2dc82221e9cb1..24f0f88454b63 100644 --- a/ext/opcache/jit/tls/zend_jit_tls_aarch64.c +++ b/ext/opcache/jit/tls/zend_jit_tls_aarch64.c @@ -238,6 +238,7 @@ void *zend_jit_tsrm_ls_cache_address( size_t module_index, size_t module_offset ) { +#ifndef USE_FALLBACK char *thread_pointer; __asm__ __volatile__( "mrs %0, tpidr_el0\n" @@ -251,5 +252,6 @@ void *zend_jit_tsrm_ls_cache_address( dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET); return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset); } +#endif return NULL; } diff --git a/ext/opcache/jit/tls/zend_jit_tls_x86.c b/ext/opcache/jit/tls/zend_jit_tls_x86.c index bca46c8f82664..4e06bbd1eacde 100644 --- a/ext/opcache/jit/tls/zend_jit_tls_x86.c +++ b/ext/opcache/jit/tls/zend_jit_tls_x86.c @@ -222,6 +222,7 @@ void *zend_jit_tsrm_ls_cache_address( size_t module_index, size_t module_offset ) { +#ifndef USE_FALLBACK char *thread_pointer; __asm__ __volatile__( "movl %%gs:0, %0\n" @@ -235,5 +236,6 @@ void *zend_jit_tsrm_ls_cache_address( dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET); return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset); } +#endif return NULL; } diff --git a/ext/opcache/jit/tls/zend_jit_tls_x86_64.c b/ext/opcache/jit/tls/zend_jit_tls_x86_64.c index 3adeb1ff8064c..11ffe495fcbb3 100644 --- a/ext/opcache/jit/tls/zend_jit_tls_x86_64.c +++ b/ext/opcache/jit/tls/zend_jit_tls_x86_64.c @@ -205,6 +205,7 @@ void *zend_jit_tsrm_ls_cache_address( size_t module_index, size_t module_offset ) { +#ifndef USE_FALLBACK char *thread_pointer; __asm__ __volatile__( "movq %%fs:0, %0\n" @@ -218,5 +219,6 @@ void *zend_jit_tsrm_ls_cache_address( dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET); return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset); } +#endif return NULL; }