Changeset 1112 in vbox for trunk/src/recompiler
- Timestamp:
- Feb 28, 2007 3:32:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/new/VBoxRecompiler.c
r1096 r1112 2716 2716 2717 2717 2718 #ifdef PGM_DYNAMIC_RAM_ALLOC2719 2718 /** 2720 2719 * Convert GC physical address to HC virt … … 2726 2725 void *remR3GCPhys2HCVirt(void *env, target_ulong addr) 2727 2726 { 2727 #ifdef PGM_DYNAMIC_RAM_ALLOC 2728 2728 PVM pVM = ((CPUState *)env)->pVM; 2729 2729 uint32_t i; … … 2742 2742 Log(("remR3GCPhys2HCVirt: %x -> %x\n", addr, pVM->rem.s.paGCPhysToHCVirt[addr >> PGM_DYNAMIC_CHUNK_SHIFT] + (addr & PGM_DYNAMIC_CHUNK_OFFSET_MASK))); 2743 2743 return (void *)(pVM->rem.s.paGCPhysToHCVirt[addr >> PGM_DYNAMIC_CHUNK_SHIFT] + (addr & PGM_DYNAMIC_CHUNK_OFFSET_MASK)); 2744 #else 2745 return (target_ulong)addr - (target_ulong)phys_ram_base; 2746 #endif 2744 2747 } 2745 2748 … … 2754 2757 target_ulong remR3HCVirt2GCPhys(void *env, void *addr) 2755 2758 { 2759 #ifdef PGM_DYNAMIC_RAM_ALLOC 2756 2760 PVM pVM = ((CPUState *)env)->pVM; 2757 2761 RTHCUINTPTR HCVirt = (RTHCUINTPTR)addr; … … 2789 2793 AssertReleaseMsgFailed(("No translation for physical address %VHv???\n", addr)); 2790 2794 return 0; 2795 #else 2796 return (target_ulong)addr - (target_ulong)phys_ram_base; 2797 #endif 2791 2798 } 2792 2799 … … 2813 2820 } 2814 2821 2815 #endif /* PGM_DYNAMIC_RAM_ALLOC */2816 2822 2817 2823
Note:
See TracChangeset
for help on using the changeset viewer.