From: Toni Wilen Date: Tue, 28 Jul 2020 14:21:42 +0000 (+0300) Subject: Fix Hard flush JIT option. X-Git-Tag: 4900~334 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ac35680727a77e537db0068bdd8e20d0a479baaa;p=francis%2Fwinuae.git Fix Hard flush JIT option. --- 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