#include "compemu_prefs.cpp"
-#define cache_size currprefs.cachesize
-
#define uint32 uae_u32
#define uint8 uae_u8
const bool follow_const_jumps = false;
#endif
-#ifdef UAE
-/* ... */
-#else
-const uae_u32 MIN_CACHE_SIZE = 1024; // Minimal translation cache size (1 MB)
-static uae_u32 cache_size = 0; // Size of total cache allocated for compiled blocks
-#endif
+const uae_u32 MIN_CACHE_SIZE = 1024; // Minimal translation cache size (1 MB)
+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
#ifdef UAE
compiled_code = 0;
}
+#ifdef UAE
+ cache_size = currprefs.cachesize;
+#endif
if (cache_size == 0)
return;
VirtualFree(addr, size, freetype);
}
-#ifdef JIT
-#ifdef _WIN32
-
-void cache_free (uae_u8 *cache)
-{
- virtualfreewithlock (cache, 0, MEM_RELEASE);
-}
-
-uae_u8 *cache_alloc (int size)
-{
- return virtualallocwithlock (NULL, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
-}
-
-#endif /*_WIN32 */
-#endif /* JIT */
-
static uae_u32 lowmem (void)
{
uae_u32 change = 0;