Changeset 9212 in vbox for trunk/src/VBox/VMM/PATM/VMMAll/CSAMAll.cpp
- Timestamp:
- May 29, 2008 9:38:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/VMMAll/CSAMAll.cpp
r8155 r9212 92 92 Assert(bit < PAGE_SIZE); 93 93 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); 95 95 } 96 96 … … 138 138 } 139 139 #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]); 141 141 if (!pVM->csam.s.pPDHCBitmapGC[pgdir]) 142 142 { … … 154 154 } 155 155 if(fScanned) 156 ASMBitSet( pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);156 ASMBitSet((void *)pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit); 157 157 else 158 ASMBitClear( pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);158 ASMBitClear((void *)pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit); 159 159 160 160 return VINF_SUCCESS; … … 204 204 if (pVM->csam.s.cPossibleCodePages < RT_ELEMENTS(pVM->csam.s.pvPossibleCodePage)) 205 205 { 206 pVM->csam.s.pvPossibleCodePage[pVM->csam.s.cPossibleCodePages++] = GCPtr;206 pVM->csam.s.pvPossibleCodePage[pVM->csam.s.cPossibleCodePages++] = (RTGCPTR32)GCPtr; 207 207 VM_FF_SET(pVM, VM_FF_CSAM_PENDING_ACTION); 208 208 } … … 251 251 for (uint32_t i=0;i<pVM->csam.s.cDangerousInstr;i++) 252 252 { 253 if (pVM->csam.s.aDangerousInstr[i] == GCPtr)253 if (pVM->csam.s.aDangerousInstr[i] == (RTGCPTR32)GCPtr) 254 254 { 255 255 STAM_COUNTER_INC(&pVM->csam.s.StatInstrCacheHit); … … 258 258 } 259 259 /* 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; 261 261 pVM->csam.s.iDangerousInstr &= CSAM_MAX_DANGR_INSTR_MASK; 262 262
Note:
See TracChangeset
for help on using the changeset viewer.