VirtualBox

Changeset 26272 in vbox


Ignore:
Timestamp:
Feb 5, 2010 4:18:52 AM (15 years ago)
Author:
vboxsync
Message:

VMM: more RC/GC warnings.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

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

    r26271 r26272  
    155155    if (!PATMIsPatchGCAddr(pVM, pSrc))
    156156    {
    157         int rc = MMGCRamRead(pVM, pDest, (void *)pSrc, cb);
     157        int rc = MMGCRamRead(pVM, pDest, (void *)(uintptr_t)pSrc, cb);
    158158        if (rc == VERR_ACCESS_DENIED)
    159159        {
     
    164164    }
    165165    else /* the hypervisor region is always present. */
    166         memcpy(pDest, (RTRCPTR)pSrc, cb);
     166        memcpy(pDest, (RTRCPTR)(uintptr_t)pSrc, cb);
    167167
    168168# endif /* IN_RING3 */
     
    412412{
    413413#ifdef IN_RC
    414     int rc = MMGCRamRead(pVM, pvDst, (void *)GCPtrSrc, cb);
     414    int rc = MMGCRamRead(pVM, pvDst, (void *)(uintptr_t)GCPtrSrc, cb);
    415415    if (RT_LIKELY(rc != VERR_ACCESS_DENIED))
    416416        return rc;
     
    937937    GCPtrPar1 = emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, GCPtrPar1);
    938938#ifdef IN_RC
    939     pvParam1  = (void *)GCPtrPar1;
     939    pvParam1  = (void *)(uintptr_t)GCPtrPar1;
    940940#else
    941941    PGMPAGEMAPLOCK Lock;
     
    16701670            {
    16711671            case PARMTYPE_ADDRESS:
    1672                 pParam1 = (RTRCPTR)param1.val.val64;
    1673                 pParam1 = (RTRCPTR)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTGCPTR)(RTRCUINTPTR)pParam1);
     1672                pParam1 = (RTRCPTR)(uintptr_t)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTRCUINTPTR)param1.val.val64);
    16741673                EM_ASSERT_FAULT_RETURN(pParam1 == (RTRCPTR)pvFault, VERR_EM_INTERPRETER);
    16751674                break;
     
    17421741            {
    17431742            case PARMTYPE_ADDRESS:
    1744                 pParam1 = (RTRCPTR)param1.val.val64;
    1745                 pParam1 = (RTRCPTR)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTGCPTR)(RTRCUINTPTR)pParam1);
     1743                pParam1 = (RTRCPTR)(uintptr_t)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTRCUINTPTR)param1.val.val64);
    17461744                EM_ASSERT_FAULT_RETURN(pParam1 == (RTRCPTR)pvFault, VERR_EM_INTERPRETER);
    17471745                break;
     
    18131811            {
    18141812            case PARMTYPE_ADDRESS:
    1815                 pParam1 = (RTRCPTR)param1.val.val64;
    1816                 pParam1 = (RTRCPTR)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTGCPTR)(RTRCUINTPTR)pParam1);
     1813                pParam1 = (RTRCPTR)(uintptr_t)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTRCUINTPTR)param1.val.val64);
    18171814                EM_ASSERT_FAULT_RETURN(pParam1 == (RTRCPTR)pvFault, VERR_EM_INTERPRETER);
    18181815                break;
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r26177 r26272  
    275275             isn't a problem though since the operation can be restarted in REM. */
    276276#ifdef IN_RC
    277     return MMGCRamReadNoTrapHandler(pDest, (void *)GCSrc, cb);
     277    return MMGCRamReadNoTrapHandler(pDest, (void *)(uintptr_t)GCSrc, cb);
    278278#else
    279279    return PGMPhysReadGCPtr(pVCpu, pDest, GCSrc, cb);
     
    296296#ifdef IN_RC
    297297    NOREF(pCtxCore);
    298     return MMGCRamWriteNoTrapHandler((void *)GCPtrDst, pvSrc, cb);
     298    return MMGCRamWriteNoTrapHandler((void *)(uintptr_t)GCPtrDst, pvSrc, cb);
    299299#elif IN_RING0
    300300    return PGMPhysInterpretedWriteNoHandlers(pVCpu, pCtxCore, GCPtrDst, pvSrc, cb, false /*fRaiseTrap*/);
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