From ac35680727a77e537db0068bdd8e20d0a479baaa Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 28 Jul 2020 17:21:42 +0300 Subject: [PATCH] Fix Hard flush JIT option. --- jit/compemu_support.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index 15463388..89783f93 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -287,14 +287,15 @@ const bool follow_const_jumps = false; #endif static uae_u32 cache_size = 0; // Size of total cache allocated for compiled blocks -static uae_u32 current_cache_size = 0; // Cache grows upwards: how much has been consumed already -static bool lazy_flush = true; // Flag: lazy translation cache invalidation +static uae_u32 current_cache_size = 0; // Cache grows upwards: how much has been consumed already // Flag: compile FPU instructions ? #ifdef UAE #ifdef USE_JIT_FPU #define avoid_fpu (!currprefs.compfpu) +#define lazy_flush (!currprefs.comp_hardflush) #else #define avoid_fpu (true) +#define lazy_flush (true) #endif #else #ifdef USE_JIT_FPU @@ -4060,6 +4061,7 @@ static void prepare_block(blockinfo* bi) #ifdef UAE void compemu_reset(void) { + flush_icache = lazy_flush ? flush_icache_lazy : flush_icache_hard; set_cache_state(0); } #endif -- 2.47.3