- Timestamp:
- May 24, 2012 2:47:09 PM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/EM.cpp
r41326 r41436 1313 1313 } 1314 1314 1315 Assert(PGMPhysIsA20Enabled(pVCpu));1315 /*Assert(PGMPhysIsA20Enabled(pVCpu));*/ 1316 1316 return EMSTATE_RAW; 1317 1317 #endif /* !IEM_VERIFICATION_MODE */ -
trunk/src/recompiler/VBoxRecompiler.c
r41385 r41436 127 127 static STAMPROFILEADV gStatMemWrite; 128 128 static STAMPROFILE gStatGCPhys2HCVirt; 129 static STAMPROFILE gStatHCVirt2GCPhys;130 129 static STAMCOUNTER gStatCpuGetTSC; 131 130 static STAMCOUNTER gStatRefuseTFInhibit; … … 377 376 STAM_REG(pVM, &gStatMemRead, STAMTYPE_PROFILE, "/PROF/REM/MemRead", STAMUNIT_TICKS_PER_CALL, "Profiling memory access."); 378 377 STAM_REG(pVM, &gStatMemWrite, STAMTYPE_PROFILE, "/PROF/REM/MemWrite", STAMUNIT_TICKS_PER_CALL, "Profiling memory access."); 379 STAM_REG(pVM, &gStatHCVirt2GCPhys, STAMTYPE_PROFILE, "/PROF/REM/HCVirt2GCPhys", STAMUNIT_TICKS_PER_CALL, "Profiling memory conversion."); 380 STAM_REG(pVM, &gStatGCPhys2HCVirt, STAMTYPE_PROFILE, "/PROF/REM/GCPhys2HCVirt", STAMUNIT_TICKS_PER_CALL, "Profiling memory conversion."); 378 STAM_REG(pVM, &gStatGCPhys2HCVirt, STAMTYPE_PROFILE, "/PROF/REM/GCPhys2HCVirt", STAMUNIT_TICKS_PER_CALL, "Profiling memory conversion (PGMR3PhysTlbGCPhys2Ptr)."); 381 379 382 380 STAM_REG(pVM, &gStatCpuGetTSC, STAMTYPE_COUNTER, "/REM/CpuGetTSC", STAMUNIT_OCCURENCES, "cpu_get_tsc calls"); … … 556 554 STAM_DEREG(pVM, &gStatMemRead); 557 555 STAM_DEREG(pVM, &gStatMemWrite); 558 STAM_DEREG(pVM, &gStatHCVirt2GCPhys);559 556 STAM_DEREG(pVM, &gStatGCPhys2HCVirt); 560 557 … … 1651 1648 } 1652 1649 1653 Assert(env->pVCpu && PGMPhysIsA20Enabled(env->pVCpu)); 1650 /* Assert(env->pVCpu && PGMPhysIsA20Enabled(env->pVCpu));*/ 1654 1651 *piException = EXCP_EXECUTE_RAW; 1655 1652 return true; … … 1733 1730 int rc; 1734 1731 1732 1735 1733 /* Address must be aligned enough to fiddle with lower bits */ 1736 1734 Assert((physAddr & 0x3) == 0); 1737 1735 /*AssertMsg((env1->a20_mask & physAddr) == physAddr, ("%llx\n", (uint64_t)physAddr));*/ 1736 1737 STAM_PROFILE_START(&gStatGCPhys2HCVirt, a); 1738 1738 rc = PGMR3PhysTlbGCPhys2Ptr(env1->pVM, physAddr, true /*fWritable*/, &pv); 1739 STAM_PROFILE_STOP(&gStatGCPhys2HCVirt, a); 1739 1740 Assert( rc == VINF_SUCCESS 1740 1741 || rc == VINF_PGM_PHYS_TLB_CATCH_WRITE -
trunk/src/recompiler/exec-all.h
r37702 r41436 349 349 { 350 350 int mmu_idx, page_index, pd; 351 # ifndef VBOX 351 352 void *p; 353 # endif 352 354 353 355 page_index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); -
trunk/src/recompiler/target-i386/helper.c
r37689 r41436 829 829 } 830 830 do_mapping: 831 #ifndef VBOX 831 832 pte = pte & env->a20_mask; 833 #endif 832 834 833 835 /* Even if 4MB pages, we map only one 4KB page in the cache to … … 835 837 page_offset = (addr & TARGET_PAGE_MASK) & (page_size - 1); 836 838 paddr = (pte & TARGET_PAGE_MASK) + page_offset; 839 #ifdef VBOX 840 paddr &= env->a20_mask; 841 #endif 837 842 vaddr = virt_addr + page_offset; 838 843
Note:
See TracChangeset
for help on using the changeset viewer.