VirtualBox

Changeset 21443 in vbox


Ignore:
Timestamp:
Jul 9, 2009 2:04:57 PM (15 years ago)
Author:
vboxsync
Message:

Fix boundary cases when crossing into a page that hasn't been scanned before

File:
1 edited

Legend:

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

    r20011 r21443  
    721721        uint32_t     cbInstr = 0;
    722722        uint32_t     opsize  = pCpu->opsize;
    723 
    724         PATMR3AddHint(pVM, pCurInstrGC, (pPage->fCode32) ? PATMFL_CODE32 : 0);
     723        bool         fCode32 = pPage->fCode32;
     724
     725        Assert(fCode32);
     726
     727        PATMR3AddHint(pVM, pCurInstrGC, (fCode32) ? PATMFL_CODE32 : 0);
    725728
    726729        /* Make sure the instructions that follow the cli have not been encountered before. */
     
    750753            Assert(VALID_PTR(pCurInstrHC));
    751754
    752             cpu.mode = (pPage->fCode32) ? CPUMODE_32BIT : CPUMODE_16BIT;
     755            cpu.mode = (fCode32) ? CPUMODE_32BIT : CPUMODE_16BIT;
    753756            rc = CSAMR3DISInstr(pVM, &cpu, pCurInstrGC, pCurInstrHC, &opsize, NULL);
    754757            Assert(RT_SUCCESS(rc));
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