VirtualBox

Ignore:
Timestamp:
May 29, 2008 9:38:38 AM (17 years ago)
Author:
vboxsync
Message:

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.

File:
1 edited

Legend:

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

    r8155 r9212  
    9292    Assert(bit < PAGE_SIZE);
    9393
    94     return pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir] && ASMBitTest(pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
     94    return pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir] && ASMBitTest((void *)pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
    9595}
    9696
     
    138138        }
    139139#ifdef IN_GC
    140         pVM->csam.s.pPDHCBitmapGC[pgdir] = MMHyperGC2HC(pVM, pVM->csam.s.pPDBitmapGC[pgdir]);
     140        pVM->csam.s.pPDHCBitmapGC[pgdir] = MMHyperGC2HC(pVM, (RCPTRTYPE(void*))pVM->csam.s.pPDBitmapGC[pgdir]);
    141141        if (!pVM->csam.s.pPDHCBitmapGC[pgdir])
    142142        {
     
    154154    }
    155155    if(fScanned)
    156         ASMBitSet(pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
     156        ASMBitSet((void *)pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
    157157    else
    158         ASMBitClear(pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
     158        ASMBitClear((void *)pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
    159159
    160160    return VINF_SUCCESS;
     
    204204    if (pVM->csam.s.cPossibleCodePages < RT_ELEMENTS(pVM->csam.s.pvPossibleCodePage))
    205205    {
    206         pVM->csam.s.pvPossibleCodePage[pVM->csam.s.cPossibleCodePages++] = GCPtr;
     206        pVM->csam.s.pvPossibleCodePage[pVM->csam.s.cPossibleCodePages++] = (RTGCPTR32)GCPtr;
    207207        VM_FF_SET(pVM, VM_FF_CSAM_PENDING_ACTION);
    208208    }
     
    251251    for (uint32_t i=0;i<pVM->csam.s.cDangerousInstr;i++)
    252252    {
    253         if (pVM->csam.s.aDangerousInstr[i] == GCPtr)
     253        if (pVM->csam.s.aDangerousInstr[i] == (RTGCPTR32)GCPtr)
    254254        {
    255255            STAM_COUNTER_INC(&pVM->csam.s.StatInstrCacheHit);
     
    258258    }
    259259    /* Record that we're about to process it in ring 3. */
    260     pVM->csam.s.aDangerousInstr[pVM->csam.s.iDangerousInstr++] = GCPtr;
     260    pVM->csam.s.aDangerousInstr[pVM->csam.s.iDangerousInstr++] = (RTGCPTR32)GCPtr;
    261261    pVM->csam.s.iDangerousInstr &= CSAM_MAX_DANGR_INSTR_MASK;
    262262
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