Changeset 1182 in vbox for trunk/src/recompiler/new/exec-all.h
- Timestamp:
- Mar 4, 2007 7:34:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/new/exec-all.h
r1113 r1182 26 26 #ifdef VBOX 27 27 # include <VBox/tm.h> 28 # include <VBox/pgm.h> /* PGM_DYNAMIC_RAM_ALLOC */ 28 29 # ifndef LOG_GROUP 29 30 # define LOG_GROUP LOG_GROUP_REM 30 # endif 31 # endif 31 32 # include <VBox/log.h> 32 33 # include "REMInternal.h" … … 603 604 # ifdef VBOX 604 605 target_ulong remR3PhysGetPhysicalAddressCode(CPUState *env, target_ulong addr, CPUTLBEntry *pTLBEntry); 606 # ifdef PGM_DYNAMIC_RAM_ALLOC 605 607 target_ulong remR3HCVirt2GCPhys(void *env, void *addr); 606 # endif 608 # endif 609 # endif 607 610 /* NOTE: this function can trigger an exception */ 608 611 /* NOTE2: the returned address is not exactly the physical address: it … … 636 639 # ifdef VBOX 637 640 /* deal with non-MMIO access handlers. */ 638 return remR3PhysGetPhysicalAddressCode(env, addr, &env->tlb_table[is_user][index]); 641 return remR3PhysGetPhysicalAddressCode(env, addr, &env->tlb_table[is_user][index]); 639 642 # else 640 643 cpu_abort(env, "Trying to execute code outside RAM or ROM at 0x%08lx\n", addr); 641 644 # endif 642 645 } 643 # if def VBOX646 # if defined(VBOX) && defined(PGM_DYNAMIC_RAM_ALLOC) 644 647 return remR3HCVirt2GCPhys(env, (void *)(addr + env->tlb_table[is_user][index].addend)); 645 648 # else 646 649 return addr + env->tlb_table[is_user][index].addend - (unsigned long)phys_ram_base; 647 # endif 650 # endif 648 651 } 649 652 #endif
Note:
See TracChangeset
for help on using the changeset viewer.