VirtualBox

Changeset 2878 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 25, 2007 3:26:24 PM (18 years ago)
Author:
vboxsync
Message:

Only take the lower 16 bits from ecx when in real or v86 mode.

File:
1 edited

Legend:

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

    r2560 r2878  
    16271627    {
    16281628        cTransfers = pRegFrame->ecx;
     1629
     1630        if (    CPUMIsGuestInRealMode(pVM)
     1631            ||  eflags.Bits.u1VM)
     1632            cTransfers &= 0xffff;
     1633
    16291634        if (!cTransfers)
    16301635            return VINF_SUCCESS;
     
    17761781    {
    17771782        cTransfers = pRegFrame->ecx;
     1783        if (    CPUMIsGuestInRealMode(pVM)
     1784            ||  eflags.Bits.u1VM)
     1785            cTransfers &= 0xffff;
     1786
    17781787        if (!cTransfers)
    17791788            return VINF_SUCCESS;
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