ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp
(Generate patch)

Comparing BasiliskII/src/uae_cpu/compiler/compemu_support.cpp (file contents):
Revision 1.2 by gbeauche, 2002-09-18T07:50:55Z vs.
Revision 1.3 by gbeauche, 2002-09-18T09:55:37Z

# Line 79 | Line 79 | const bool             JITDebug                        = false;        // Don't
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 ?
# Line 4589 | Line 4589 | void compiler_exit(void)
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          
# Line 5145 | Line 5141 | void alloc_cache(void)
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          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines