Format code
This commit is contained in:
9
uc.c
9
uc.c
@@ -35,7 +35,8 @@ static void clear_deleted_hooks(uc_engine *uc);
|
||||
static uc_err uc_snapshot(uc_engine *uc);
|
||||
static uc_err uc_restore_latest_snapshot(uc_engine *uc);
|
||||
|
||||
#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__))
|
||||
#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && \
|
||||
(defined(__arm__) || defined(__aarch64__))
|
||||
static void save_jit_state(uc_engine *uc)
|
||||
{
|
||||
if (!uc->nested) {
|
||||
@@ -2148,7 +2149,8 @@ uc_err uc_context_save(uc_engine *uc, uc_context *context)
|
||||
if (!context->fv) {
|
||||
return UC_ERR_NOMEM;
|
||||
}
|
||||
if (!uc->flatview_copy(uc, context->fv, uc->address_space_memory.current_map, false)) {
|
||||
if (!uc->flatview_copy(uc, context->fv,
|
||||
uc->address_space_memory.current_map, false)) {
|
||||
restore_jit_state(uc);
|
||||
return UC_ERR_NOMEM;
|
||||
}
|
||||
@@ -2434,7 +2436,8 @@ uc_err uc_context_restore(uc_engine *uc, uc_context *context)
|
||||
uc_snapshot(uc);
|
||||
uc->ram_list.freed = context->ramblock_freed;
|
||||
uc->ram_list.last_block = context->last_block;
|
||||
if (!uc->flatview_copy(uc, uc->address_space_memory.current_map, context->fv, true)) {
|
||||
if (!uc->flatview_copy(uc, uc->address_space_memory.current_map,
|
||||
context->fv, true)) {
|
||||
return UC_ERR_NOMEM;
|
||||
}
|
||||
uc->tcg_flush_tlb(uc);
|
||||
|
||||
Reference in New Issue
Block a user