VirtualBox

Changeset 15419 in vbox for trunk/src


Ignore:
Timestamp:
Dec 13, 2008 7:01:33 AM (16 years ago)
Author:
vboxsync
Message:

EMAll: Corrected PGMVerifyAccess call in the STOSDW emulation to pass the correct X86_PTE_US flag. Vista64 took a lot of REMR3EmulateInstruction fallbacks because of this.

File:
1 edited

Legend:

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

    r15418 r15419  
    13581358        LogFlow(("emInterpretStosWD dest=%04X:%RGv (%RGv) cbSize=%d cTransfers=%x DF=%d\n", pRegFrame->es, GCOffset, GCDest, cbSize, cTransfers, pRegFrame->eflags.Bits.u1DF));
    13591359        /* Access verification first; we currently can't recover properly from traps inside this instruction */
    1360         rc = PGMVerifyAccess(pVM, GCDest - ((offIncrement > 0) ? 0 : ((cTransfers-1) * cbSize)), cTransfers * cbSize, X86_PTE_RW | X86_PTE_US);
     1360        rc = PGMVerifyAccess(pVM, GCDest - ((offIncrement > 0) ? 0 : ((cTransfers-1) * cbSize)),
     1361                             cTransfers * cbSize,
     1362                             X86_PTE_RW | (CPUMGetGuestCPL(pVM, pRegFrame) == 3 ? X86_PTE_US : 0));
    13611363        if (rc != VINF_SUCCESS)
    13621364        {
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