]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: updated cache_size usage, remove unused cache_alloc / cache_free
authorFrode Solheim <frode@fs-uae.net>
Fri, 18 Sep 2015 22:56:24 +0000 (00:56 +0200)
committerFrode Solheim <frode@fs-uae.net>
Fri, 18 Sep 2015 22:56:24 +0000 (00:56 +0200)
jit/compemu.h
jit/compemu_prefs.cpp
jit/compemu_support.cpp

index d42b6b6b30130d3e2a5206bcc861067542e6a3fd..37d56ea68b8894dfc8df0e85d1903b69f800e1c3 100644 (file)
@@ -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
index a69d399ee79a1b8a3bc4bf5faf4309fce866e21f..0882f6adb924c3b61624e99f26eb36c103fa3b7a 100644 (file)
@@ -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);
index 597476db59b5da390cf8161fe669775acf86ebf6..4a6c798120c52a8601dab9741049c0fa243c5553 100644 (file)
@@ -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)