VirtualBox

Changeset 71925 in vbox for trunk


Ignore:
Timestamp:
Apr 19, 2018 9:43:40 PM (7 years ago)
Author:
vboxsync
Message:

iom.h: Fixed buggy IOMMMIO_DOES_WRITE_MODE_ALLOW_QWORD macro (only affected NVMe I think).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/iom.h

    r69107 r71925  
    160160 * thru to the device handler.
    161161 * @param   a_fFlags        The MMIO handler flags.
    162  * @remarks The current implementation makes ASSUMPTIONS about the mode values!
    163  */
    164 #define IOMMMIO_DOES_WRITE_MODE_ALLOW_QWORD(a_fFlags)   RT_BOOL((a_fFlags) & UINT32_C(0x00000020))
     162 */
     163#define IOMMMIO_DOES_WRITE_MODE_ALLOW_QWORD(a_fFlags) \
     164    (   ((a_fFlags) & IOMMMIO_FLAGS_WRITE_MODE) == IOMMMIO_FLAGS_WRITE_DWORD_QWORD_ZEROED \
     165     || ((a_fFlags) & IOMMMIO_FLAGS_WRITE_MODE) == IOMMMIO_FLAGS_WRITE_DWORD_QWORD_READ_MISSING \
     166     || ((a_fFlags) & IOMMMIO_FLAGS_WRITE_MODE) == IOMMMIO_FLAGS_WRITE_ONLY_DWORD_QWORD )
    165167
    166168
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