VirtualBox

Changeset 26296 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Feb 5, 2010 2:53:35 PM (15 years ago)
Author:
vboxsync
Message:

more warnings.

Location:
trunk/src/VBox/VMM/PATM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp

    r26271 r26296  
    391391            ||  (pRegFrame->cs & X86_SEL_RPL) != 3
    392392            ||  pVM->patm.s.pfnSysEnterPatchGC == 0
    393             ||  pVM->patm.s.pfnSysEnterGC != (RTRCPTR)pCtx->SysEnter.eip
     393            ||  pVM->patm.s.pfnSysEnterGC != (RTRCPTR)(RTRCUINTPTR)pCtx->SysEnter.eip
    394394            ||  !(PATMRawGetEFlags(pVM, pRegFrame) & X86_EFL_IF))
    395395            goto end;
  • trunk/src/VBox/VMM/PATM/VMMGC/CSAMGC.cpp

    r26271 r26296  
    9191        rc = PGMShwModifyPage(pVCpu, pvFault, 1, X86_PTE_RW, ~(uint64_t)X86_PTE_RW);
    9292        AssertMsgRC(rc, ("PGMShwModifyPage -> rc=%Rrc\n", rc));
    93         ASMInvalidatePage((void *)pvFault);
     93        ASMInvalidatePage((void *)(uintptr_t)pvFault);
    9494        return VINF_SUCCESS;
    9595    }
     
    121121
    122122    /* Note that pvFault might be a different address in case of aliases. So use pvRange + offset instead!. */
    123     pVM->csam.s.pvDirtyBasePage[pVM->csam.s.cDirtyPages] = (RTRCPTR)((RTGCUINTPTR)pvRange + offRange);
    124     pVM->csam.s.pvDirtyFaultPage[pVM->csam.s.cDirtyPages] = (RTRCPTR)((RTGCUINTPTR)pvRange + offRange);
     123    pVM->csam.s.pvDirtyBasePage[pVM->csam.s.cDirtyPages] = (RTRCPTR)((RTRCUINTPTR)pvRange + offRange);
     124    pVM->csam.s.pvDirtyFaultPage[pVM->csam.s.cDirtyPages] = (RTRCPTR)((RTRCUINTPTR)pvRange + offRange);
    125125    if (++pVM->csam.s.cDirtyPages == CSAM_MAX_DIRTY_PAGES)
    126126        return VINF_CSAM_PENDING_ACTION;
     
    132132    rc = PGMShwModifyPage(pVCpu, pvFault, 1, X86_PTE_RW, ~(uint64_t)X86_PTE_RW);
    133133    AssertMsgRC(rc, ("PGMShwModifyPage -> rc=%Rrc\n", rc));
    134     ASMInvalidatePage((void *)pvFault);
     134    ASMInvalidatePage((void *)(uintptr_t)pvFault);
    135135
    136136    STAM_COUNTER_INC(&pVM->csam.s.StatCodePageModified);
  • trunk/src/VBox/VMM/PATM/VMMGC/PATMGC.cpp

    r26271 r26296  
    6363VMMRCDECL(int) PATMGCMonitorPage(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange)
    6464{
    65     pVM->patm.s.pvFaultMonitor = (RTRCPTR)pvFault;
     65    pVM->patm.s.pvFaultMonitor = (RTRCPTR)(RTRCUINTPTR)pvFault;
    6666    return VINF_PATM_CHECK_PATCH_PAGE;
    6767}
     
    9292    STAM_PROFILE_ADV_START(&pVM->patm.s.StatPatchWriteDetect, a);
    9393
    94     pWritePageStart = (RTGCUINTPTR)GCPtr & PAGE_BASE_GC_MASK;
    95     pWritePageEnd   = ((RTGCUINTPTR)GCPtr + cbWrite - 1) & PAGE_BASE_GC_MASK;
     94    pWritePageStart = (RTRCUINTPTR)GCPtr & PAGE_BASE_GC_MASK;
     95    pWritePageEnd   = ((RTRCUINTPTR)GCPtr + cbWrite - 1) & PAGE_BASE_GC_MASK;
    9696
    9797    pPatchPage = (PPATMPATCHPAGE)RTAvloU32Get(CTXSUFF(&pVM->patm.s.PatchLookupTree)->PatchTreeByPage, (AVLOU32KEY)pWritePageStart);
     
    110110    if (pPatchPage)
    111111    {
    112         if (    pPatchPage->pLowestAddrGC  > (RTRCPTR)((RTGCUINTPTR)GCPtr + cbWrite - 1)
     112        if (    pPatchPage->pLowestAddrGC  > (RTRCPTR)((RTRCUINTPTR)GCPtr + cbWrite - 1)
    113113            ||  pPatchPage->pHighestAddrGC < (RTRCPTR)GCPtr)
    114114        {
     
    516516                return VINF_EM_RAW_EMULATE_INSTR;
    517517            }
    518             rc = DISCoreOne(&cpu, (RTUINTPTR)&pRec->patch.aPrivInstr[0], &cbOp);
     518            rc = DISCoreOne(&cpu, (uintptr_t)&pRec->patch.aPrivInstr[0], &cbOp);
    519519            if (RT_FAILURE(rc))
    520520            {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette