VirtualBox

忽略:
時間撮記:
2008-5-29 上午09:38:38 (16 年 以前)
作者:
vboxsync
訊息:

Major changes for sizeof(RTGCPTR) == uint64_t.
Introduced RCPTRTYPE for pointers valid in raw mode only (RTGCPTR32).

Disabled by default. Enable by adding VBOX_WITH_64_BITS_GUESTS to your LocalConfig.kmk.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r9083 r9212  
    5555typedef DECLCALLBACK(uint32_t) PFN_EMULATE_PARAM2(uint32_t *pu32Param1, size_t val2);
    5656typedef DECLCALLBACK(uint32_t) PFN_EMULATE_PARAM3(uint32_t *pu32Param1, uint32_t val2, size_t val3);
    57 typedef DECLCALLBACK(int)      FNEMULATELOCKPARAM2(RTGCPTR GCPtrParam1, RTGCUINTREG Val2, uint32_t *pf);
     57typedef DECLCALLBACK(int)      FNEMULATELOCKPARAM2(RTGCPTR GCPtrParam1, RTGCUINTREG Val2, RTGCUINTREG32 *pf);
    5858typedef FNEMULATELOCKPARAM2 *PFNEMULATELOCKPARAM2;
    59 typedef DECLCALLBACK(int)      FNEMULATELOCKPARAM3(RTGCPTR GCPtrParam1, RTGCUINTREG Val2, size_t cb, uint32_t *pf);
     59typedef DECLCALLBACK(int)      FNEMULATELOCKPARAM3(RTGCPTR GCPtrParam1, RTGCUINTREG Val2, size_t cb, RTGCUINTREG32 *pf);
    6060typedef FNEMULATELOCKPARAM3 *PFNEMULATELOCKPARAM3;
    6161
     
    291291{
    292292#ifdef IN_GC
    293     int rc = MMGCRamRead(pVM, pDest, GCSrc, cb);
     293    int rc = MMGCRamRead(pVM, pDest, (void *)GCSrc, cb);
    294294    if (RT_LIKELY(rc != VERR_ACCESS_DENIED))
    295295        return rc;
     
    312312{
    313313#ifdef IN_GC
    314     int rc = MMGCRamWrite(pVM, GCDest, pSrc, cb);
     314    int rc = MMGCRamWrite(pVM, (void *)GCDest, pSrc, cb);
    315315    if (RT_LIKELY(rc != VERR_ACCESS_DENIED))
    316316        return rc;
     
    816816    Log2(("%s %RGv imm%d=%RGr\n", emGetMnemonic(pCpu), GCPtrPar1, pCpu->param2.size*8, ValPar2));
    817817
    818     RTGCUINTREG eflags = 0;
     818    RTGCUINTREG32 eflags = 0;
    819819    MMGCRamRegisterTrapHandler(pVM);
    820820    rc = pfnEmulate(GCPtrPar1, ValPar2, pCpu->param2.size, &eflags);
     
    10901090
    10911091    /* Try emulate it with a one-shot #PF handler in place. */
    1092     RTGCUINTREG eflags = 0;
     1092    RTGCUINTREG32 eflags = 0;
    10931093    MMGCRamRegisterTrapHandler(pVM);
    10941094    rc = pfnEmulate(GCPtrPar1, ValPar2, &eflags);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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