File tree 4 files changed +11
-5
lines changed
4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2171,7 +2171,7 @@ void tcg_flush_softmmu_tlb(struct uc_struct *uc)
2171
2171
}
2172
2172
2173
2173
2174
- #if defined(__APPLE__ ) && defined(HAVE_PTHREAD_JIT_PROTECT ) && (defined(__arm__ ) || defined(__aarch64__ ))
2174
+ #if defined(__APPLE__ ) && defined(HAVE_PTHREAD_JIT_PROTECT ) && defined( HAVE_SPRR ) && (defined(__arm__ ) || defined(__aarch64__ ))
2175
2175
static bool tb_exec_is_locked (struct uc_struct * uc )
2176
2176
{
2177
2177
return uc -> current_executable ;
Original file line number Diff line number Diff line change @@ -2163,13 +2163,14 @@ int main() {
2163
2163
}
2164
2164
EOF
2165
2165
if ! compile_prog " " ; then
2166
+ have_sprr=' no'
2166
2167
have_pthread_jit_protect=' no'
2167
2168
else
2168
2169
$TMPE
2169
2170
if [ $? -eq 0 ]; then
2170
- have_pthread_jit_protect =' yes'
2171
+ have_sprr =' yes'
2171
2172
else
2172
- have_pthread_jit_protect =' no'
2173
+ have_sprr =' no'
2173
2174
fi
2174
2175
fi
2175
2176
fi
@@ -2553,6 +2554,10 @@ if test "$have_pthread_jit_protect" = "yes" ; then
2553
2554
echo " HAVE_PTHREAD_JIT_PROTECT=y" >> $config_host_mak
2554
2555
fi
2555
2556
2557
+ if test " $have_sprr " = " yes" ; then
2558
+ echo " HAVE_SPRR=y" >> $config_host_mak
2559
+ fi
2560
+
2556
2561
# Hold two types of flag:
2557
2562
# CONFIG_THREAD_SETNAME_BYTHREAD - we've got a way of setting the name on
2558
2563
# a thread we have a handle to
Original file line number Diff line number Diff line change 25
25
#ifndef TCG_APPLE_JIT_H
26
26
#define TCG_APPLE_JIT_H
27
27
28
- #if defined(__APPLE__ ) && defined(HAVE_PTHREAD_JIT_PROTECT ) && (defined(__arm__ ) || defined(__aarch64__ ))
28
+ #if defined(__APPLE__ ) && defined(HAVE_PTHREAD_JIT_PROTECT ) && defined( HAVE_SPRR ) && (defined(__arm__ ) || defined(__aarch64__ ))
29
29
30
30
/* write protect enable = write disable */
31
31
static inline void jit_write_protect (int enabled )
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ static void clear_deleted_hooks(uc_engine *uc);
35
35
static uc_err uc_snapshot (uc_engine * uc );
36
36
static uc_err uc_restore_latest_snapshot (uc_engine * uc );
37
37
38
- #if defined(__APPLE__ ) && defined(HAVE_PTHREAD_JIT_PROTECT ) && (defined(__arm__ ) || defined(__aarch64__ ))
38
+ #if defined(__APPLE__ ) && defined(HAVE_PTHREAD_JIT_PROTECT ) && \
39
+ defined(HAVE_SPRR ) && (defined(__arm__ ) || defined(__aarch64__ ))
39
40
static void save_jit_state (uc_engine * uc )
40
41
{
41
42
if (!uc -> nested ) {
You can’t perform that action at this time.
0 commit comments