VirtualBox

Changeset 7957 in vbox


Ignore:
Timestamp:
Apr 14, 2008 4:09:19 PM (17 years ago)
Author:
vboxsync
Message:

Corrected offsets

File:
1 edited

Legend:

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

    r7956 r7957  
    319319                /* paranoia / a bit assumptive. */
    320320                else if (   pCpu
    321                          && (off & 4)
    322                          && (off & 4) + pgmPoolDisasWriteSize(pCpu) > 4)
     321                         && (off & 3)
     322                         && (off & 3) + pgmPoolDisasWriteSize(pCpu) > 4)
    323323                {
    324324                    const unsigned iShw2 = (off + pgmPoolDisasWriteSize(pCpu) - 1) / sizeof(X86PTE);
     
    360360                    /* paranoia / a bit assumptive. */
    361361                    else if (   pCpu
    362                              && (off & 4)
    363                              && (off & 4) + pgmPoolDisasWriteSize(pCpu) > 4)
     362                             && (off & 7)
     363                             && (off & 7) + pgmPoolDisasWriteSize(pCpu) > 8)
    364364                    {
    365365                        const unsigned iShw2 = iShw + 2;
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