VirtualBox

Ignore:
Timestamp:
Jun 13, 2012 7:32:54 PM (12 years ago)
Author:
vboxsync
Message:

DIS: Reducing the DISCPUMODE even more (200 bytes now) and making it have the same layout in all contexts. This is useful since it's used several places in the VM structure. Also a bunch of other cleanups.

File:
1 edited

Legend:

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

    r41678 r41692  
    934934     * Get bytes/words/dwords/qwords count to copy.
    935935     */
    936     uint64_t const fAddrMask = iomDisModeToMask(pCpu->addrmode);
     936    uint64_t const fAddrMask = iomDisModeToMask((DISCPUMODE)pCpu->addrmode);
    937937    RTGCUINTREG cTransfers = 1;
    938938    if (pCpu->prefix & DISPREFIX_REP)
     
    10781078    if (rc == VINF_SUCCESS)
    10791079    {
    1080         uint64_t const fAddrMask = iomDisModeToMask(pCpu->addrmode);
     1080        uint64_t const fAddrMask = iomDisModeToMask((DISCPUMODE)pCpu->addrmode);
    10811081        pRegFrame->rsi = ((pRegFrame->rsi + offIncrement) & fAddrMask)
    10821082                       | (pRegFrame->rsi & ~fAddrMask);
     
    21562156    }
    21572157
    2158     return IOMInterpretINSEx(pVM, pRegFrame, Port, pCpu->prefix, pCpu->addrmode, cb);
     2158    return IOMInterpretINSEx(pVM, pRegFrame, Port, pCpu->prefix, (DISCPUMODE)pCpu->addrmode, cb);
    21592159}
    21602160
     
    23252325    }
    23262326
    2327     return IOMInterpretOUTSEx(pVM, pRegFrame, Port, pCpu->prefix, pCpu->addrmode, cb);
     2327    return IOMInterpretOUTSEx(pVM, pRegFrame, Port, pCpu->prefix, (DISCPUMODE)pCpu->addrmode, cb);
    23282328}
    23292329
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