VirtualBox

Changeset 79671 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jul 10, 2019 1:01:47 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131984
Message:

Devices/AHCI: Allow 16bit writes to a 32bit register by reading the missing bits instead of causing a guru meditation. This is undefined behavior as stated by the AHCI spec and some registers might return wrong results when accessed this way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r78913 r79671  
    24632463     * handling 2nd DWORD failures on split accesses correctly. */
    24642464    int rc = PDMDevHlpMMIORegister(pDevIns, GCPhysAddress, cb, NULL /*pvUser*/,
    2465                                    IOMMMIO_FLAGS_READ_DWORD | IOMMMIO_FLAGS_WRITE_ONLY_DWORD_QWORD,
     2465                                   IOMMMIO_FLAGS_READ_DWORD | IOMMMIO_FLAGS_WRITE_DWORD_QWORD_READ_MISSING,
    24662466                                   ahciMMIOWrite, ahciMMIORead, "AHCI");
    24672467    if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette