Changeset 13442
- Timestamp:
- 10/21/08 15:34:03 (3 months ago)
- Files:
-
- trunk/src/recompiler_new/VBoxRecompiler.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/recompiler_new/VBoxRecompiler.c
r13383 r13442 1561 1561 if (!s_aRegisters[uTrap]) 1562 1562 { 1563 char szStatName[64]; 1563 1564 s_aRegisters[uTrap] = true; 1564 char szStatName[64];1565 1565 RTStrPrintf(szStatName, sizeof(szStatName), "/REM/Trap/0x%02X", uTrap); 1566 1566 STAM_REG(env->pVM, &s_aStatTrap[uTrap], STAMTYPE_COUNTER, szStatName, STAMUNIT_OCCURENCES, "Trap stats."); … … 1651 1651 int rc; 1652 1652 1653 STAM_PROFILE_START(&pVM->rem.s.StatsState, a); 1653 1654 Log2(("REMR3State:\n")); 1654 STAM_PROFILE_START(&pVM->rem.s.StatsState, a);1655 1655 1656 1656 pCtx = pVM->rem.s.pCtx; … … 2100 2100 unsigned i; 2101 2101 2102 STAM_PROFILE_START(&pVM->rem.s.StatsStateBack, a); 2102 2103 Log2(("REMR3StateBack:\n")); 2103 2104 Assert(pVM->rem.s.fInREM); 2104 STAM_PROFILE_START(&pVM->rem.s.StatsStateBack, a);2105 2105 2106 /* 2106 2107 * Copy back the registers. … … 2672 2673 REMR3DECL(void) REMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, unsigned fFlags) 2673 2674 { 2675 uint32_t cbBitmap; 2676 int rc; 2674 2677 Log(("REMR3NotifyPhysRamRegister: GCPhys=%VGp cb=%d fFlags=%d\n", GCPhys, cb, fFlags)); 2675 2678 VM_ASSERT_EMT(pVM); … … 2695 2698 phys_ram_dirty = RTMemPageAlloc(_4G >> PAGE_SHIFT); 2696 2699 AssertReleaseMsg(phys_ram_dirty, ("failed to allocate %d bytes of dirty bytes\n", _4G >> PAGE_SHIFT)); 2697 uint32_tcbBitmap = RT_ALIGN_32(phys_ram_dirty_size, PAGE_SIZE);2698 intrc = RTMemProtect(phys_ram_dirty + cbBitmap, (_4G >> PAGE_SHIFT) - cbBitmap, RTMEM_PROT_NONE);2700 cbBitmap = RT_ALIGN_32(phys_ram_dirty_size, PAGE_SIZE); 2701 rc = RTMemProtect(phys_ram_dirty + cbBitmap, (_4G >> PAGE_SHIFT) - cbBitmap, RTMEM_PROT_NONE); 2699 2702 AssertRC(rc); 2700 2703 phys_ram_dirty += cbBitmap - phys_ram_dirty_size; … … 3007 3010 { 3008 3011 #ifdef VBOX_STRICT 3012 unsigned long off; 3009 3013 if (pVM->rem.s.cHandlerNotifications) 3010 3014 REMR3ReplayHandlerNotifications(pVM); 3011 3015 3012 unsigned longoff = get_phys_page_offset(GCPhys);3016 off = get_phys_page_offset(GCPhys); 3013 3017 return (off & PAGE_OFFSET_MASK) == pVM->rem.s.iHandlerMemType 3014 3018 || (off & PAGE_OFFSET_MASK) == pVM->rem.s.iMMIOMemType

