VirtualBox

Changeset 44715 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 15, 2013 2:23:06 PM (12 years ago)
Author:
vboxsync
Message:

iomMMIODoRead: Don't let 64-bit read thru unless the read mode is IOMMIO_FLAGS_READ_DWORD_QWORD.

File:
1 edited

Legend:

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

    r44573 r44715  
    492492    if (RT_LIKELY(pRange->CTX_SUFF(pfnReadCallback)))
    493493    {
    494         if (   (cbValue == 4 && !(GCPhys & 3))
     494        if (   (   cbValue == 4
     495                && !(GCPhys & 3))
    495496            || (pRange->fFlags & IOMMMIO_FLAGS_READ_MODE) == IOMMMIO_FLAGS_READ_PASSTHRU
    496             || (cbValue == 8 && !(GCPhys & 7)) )
     497            || (    cbValue == 8
     498                && !(GCPhys & 7)
     499                && (pRange->fFlags & IOMMMIO_FLAGS_READ_MODE) == IOMMMIO_FLAGS_READ_DWORD_QWORD ) )
    497500            rc = pRange->CTX_SUFF(pfnReadCallback)(pRange->CTX_SUFF(pDevIns), pRange->CTX_SUFF(pvUser), GCPhys, pvValue, cbValue);
    498501        else
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