- Timestamp:
- Mar 5, 2009 7:41:58 PM (16 years ago)
- Location:
- trunk/src/recompiler_new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/cpu-all.h
r17342 r17420 1186 1186 extern RTGCPHYS phys_ram_size; 1187 1187 /** This is required for bounds checking the phys_ram_dirty accesses. */ 1188 extern uint32_tphys_ram_dirty_size;1188 extern RTGCPHYS phys_ram_dirty_size; 1189 1189 #endif /* VBOX */ 1190 1190 #if !defined(VBOX) -
trunk/src/recompiler_new/exec.c
r17342 r17420 138 138 /* we have memory ranges (the high PC-BIOS mapping) which 139 139 causes some pages to fall outside the dirty map here. */ 140 uint32_tphys_ram_dirty_size;140 RTGCPHYS phys_ram_dirty_size; 141 141 #endif /* VBOX */ 142 142 #if !defined(VBOX) … … 468 468 469 469 #ifdef VBOX 470 /** @todo nike: isn't 32M too much ? */ 471 #endif 470 /* 471 * We don't need such huge codegen buffer size, as execute most of the code 472 * in raw or hwacc mode 473 */ 474 #define DEFAULT_CODE_GEN_BUFFER_SIZE (8 * 1024 * 1024) 475 #else 472 476 #define DEFAULT_CODE_GEN_BUFFER_SIZE (32 * 1024 * 1024) 477 #endif 473 478 474 479 #if defined(CONFIG_USER_ONLY) … … 491 496 code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE; 492 497 map_exec(code_gen_buffer, code_gen_buffer_size); 498 #else 499 #ifdef VBOX 500 /* We cannot use phys_ram_size here, as it's 0 now, 501 * it only gets initialized once RAM registration callback 502 * (REMR3NotifyPhysRamRegister()) called. 503 */ 504 code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE; 493 505 #else 494 506 code_gen_buffer_size = tb_size; … … 501 513 code_gen_buffer_size = (unsigned long)(phys_ram_size / 4); 502 514 #endif 515 503 516 } 504 517 if (code_gen_buffer_size < MIN_CODE_GEN_BUFFER_SIZE) 505 518 code_gen_buffer_size = MIN_CODE_GEN_BUFFER_SIZE; 519 #endif /* VBOX */ 520 506 521 /* The code gen buffer location may have constraints depending on 507 522 the host cpu and OS */
Note:
See TracChangeset
for help on using the changeset viewer.