From: Frode Solheim Date: Fri, 18 Sep 2015 22:56:24 +0000 (+0200) Subject: JIT: updated cache_size usage, remove unused cache_alloc / cache_free X-Git-Tag: 3200~62^2~3 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=65dfbd8d9611ccb461d8d83c089cb783935f2f56;p=francis%2Fwinuae.git JIT: updated cache_size usage, remove unused cache_alloc / cache_free --- diff --git a/jit/compemu.h b/jit/compemu.h index d42b6b6b..37d56ea6 100644 --- a/jit/compemu.h +++ b/jit/compemu.h @@ -80,9 +80,6 @@ union cacheline { #error implementation in progress #endif -#ifdef UAE -/* Temporarily disabled due to some issues on x86-64 */ -#else /* (gb) When on, this option can save save up to 30% compilation time * when many lazy flushes occur (e.g. apps in MacOS 8.x). */ @@ -93,7 +90,6 @@ union cacheline { /* Use code inlining, aka follow-up of constant jumps */ #define USE_INLINING 1 -#endif /* Inlining requires the chained checksuming information */ #if USE_INLINING diff --git a/jit/compemu_prefs.cpp b/jit/compemu_prefs.cpp index a69d399e..0882f6ad 100644 --- a/jit/compemu_prefs.cpp +++ b/jit/compemu_prefs.cpp @@ -75,7 +75,7 @@ bool check_prefs_changed_comp (void) } if (changed) - write_log (_T("JIT: cache=%d. b=%d w=%d l=%d fpu=%d nf=%d const=%d hard=%d\n"), + write_log (_T("JIT: cache=%d. b=%d w=%d l=%d fpu=%d nf=%d inline=%d hard=%d\n"), currprefs.cachesize, currprefs.comptrustbyte, currprefs.comptrustword, currprefs.comptrustlong, currprefs.compfpu, currprefs.compnf, currprefs.comp_constjump, currprefs.comp_hardflush); diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index 597476db..4a6c7981 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -242,9 +242,13 @@ static bool JITDebug = false; // Enable runtime disassemblers through mon? const bool JITDebug = false; // Don't use JIT debug mode at all #endif #if USE_INLINING -static bool follow_const_jumps = true; // Flag: translation through constant jumps +#ifdef UAE +#define follow_const_jumps (currprefs.comp_constjump != 0) +#else +static bool follow_const_jumps = true; // Flag: translation through constant jumps +#endif #else -const bool follow_const_jumps = false; +const bool follow_const_jumps = false; #endif const uae_u32 MIN_CACHE_SIZE = 1024; // Minimal translation cache size (1 MB)