79 |
|
|
80 |
|
const uae_u32 MIN_CACHE_SIZE = 2048; // Minimal translation cache size (2048 KB) |
81 |
|
static uae_u32 cache_size = 0; // Size of total cache allocated for compiled blocks |
82 |
< |
static uae_u32 current_cache_size = 0; // Cache grows upwards: how much has been consumed yet |
82 |
> |
static uae_u32 current_cache_size = 0; // Cache grows upwards: how much has been consumed already |
83 |
|
static bool lazy_flush = true; // Flag: lazy translation cache invalidation |
84 |
|
static bool avoid_fpu = true; // Flag: compile FPU instructions ? |
85 |
|
static bool have_cmov = false; // target has CMOV instructions ? |
4589 |
|
|
4590 |
|
// Deallocate translation cache |
4591 |
|
if (compiled_code) { |
4592 |
< |
#ifndef WIN32 |
4593 |
< |
munmap((caddr_t)compiled_code, cache_size); |
4594 |
< |
#else |
4595 |
< |
free(compiled_code); |
4596 |
< |
#endif |
4592 |
> |
vm_release(compiled_code, cache_size * 1024); |
4593 |
|
compiled_code = 0; |
4594 |
|
} |
4595 |
|
|
5141 |
|
{ |
5142 |
|
if (compiled_code) { |
5143 |
|
flush_icache_hard(6); |
5144 |
< |
#ifndef WIN32 |
5149 |
< |
munmap((caddr_t)compiled_code, cache_size*1024); |
5150 |
< |
#else |
5151 |
< |
free(compiled_code); |
5152 |
< |
#endif |
5144 |
> |
vm_release(compiled_code, cache_size * 1024); |
5145 |
|
compiled_code = 0; |
5146 |
|
} |
5147 |
|
|