VirtualBox

Changeset 104289 in vbox for trunk/src


Ignore:
Timestamp:
Apr 11, 2024 9:11:31 AM (9 months ago)
Author:
vboxsync
Message:

DevLpc: Use IOMMMIO_FLAGS_WRITE_DWORD since we don't really do anything with the writes anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevLpc.cpp

    r98103 r104289  
    118118{
    119119    PLPCSTATE        pThis  = PDMDEVINS_2_DATA(pDevIns, PLPCSTATE);
    120     RT_NOREF(pvUser, pv);
    121 
    122     if (cb == 4)
    123     {
    124         if (off == LPC_REG_GCS)
    125             Log(("lpcMmioWrite: Ignorning write to GCS: %.*Rhxs\n", cb, pv));
    126         else
    127             Log(("lpcMmioWrite: Ignorning write to unknown register %#RGp: %.*Rhxs\n", off, cb, pv));
    128     }
     120    RT_NOREF(pvUser, pv, cb);
     121    Assert(cb == 4); Assert(!(off & 3)); /* IOMMMIO_FLAGS_WRITE_DWORD_xxx should make sure of this */
     122
     123    if (off == LPC_REG_GCS)
     124        Log(("lpcMmioWrite: Ignorning write to GCS: %.*Rhxs\n", cb, pv));
    129125    else
    130         Log(("lpcMmioWrite: WARNING! Ignoring non-DWORD write to off=%#RGp: %.*Rhxs\n", off, cb, pv));
     126        Log(("lpcMmioWrite: Ignorning write to unknown register %#RGp: %.*Rhxs\n", off, cb, pv));
    131127
    132128    STAM_REL_COUNTER_INC(&pThis->StatMmioWrites);
     
    358354     *        mentioned above we just want this working. */
    359355    rc = PDMDevHlpMmioCreateAndMap(pDevIns, pThis->GCPhys32Rcba, 0x4000, lpcMmioWrite, lpcMmioRead,
    360                                    IOMMMIO_FLAGS_READ_DWORD | IOMMMIO_FLAGS_WRITE_PASSTHRU,
     356                                   IOMMMIO_FLAGS_READ_DWORD | IOMMMIO_FLAGS_WRITE_DWORD_ZEROED,
    361357                                   "LPC Memory", &pThis->hMmio);
    362358    AssertRCReturn(rc, rc);
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