VirtualBox

Changeset 7999 in vbox for trunk


Ignore:
Timestamp:
Apr 15, 2008 2:56:54 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29655
Message:

Don't call PGMHandlerPhysicalReset if the VRAM isn't mapped and therefore doesn't have anything that needs resetting. Fixes #2774.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r7973 r7999  
    42944294        return rc;
    42954295
    4296     if (pData->fHaveDirtyBits)
     4296    if (pData->fHaveDirtyBits && pData->GCPhysVRAM && pData->GCPhysVRAM != NIL_RTGCPHYS)
    42974297    {
    42984298        PPDMDEVINS pDevIns = pData->pDevInsHC;
     
    43274327
    43284328    /* The dirty bits array has been just cleared, reset handlers as well. */
    4329     PPDMDEVINS pDevIns = pData->pDevInsHC;
    4330     PGMHandlerPhysicalReset(PDMDevHlpGetVM(pDevIns), pData->GCPhysVRAM);
     4329    if (pData->GCPhysVRAM && pData->GCPhysVRAM != NIL_RTGCPHYS)
     4330    {
     4331        PPDMDEVINS pDevIns = pData->pDevInsHC;
     4332        PGMHandlerPhysicalReset(PDMDevHlpGetVM(pDevIns), pData->GCPhysVRAM);
     4333    }
    43314334
    43324335    return rc;
     
    49344937    if (    (   pData->fGCEnabled
    49354938             || pData->fR0Enabled)
    4936         &&  pData->GCPhysVRAM)
     4939        &&  pData->GCPhysVRAM
     4940        &&  pData->GCPhysVRAM != NIL_RTGCPHYS)
    49374941    {
    49384942        int rc = PGMHandlerPhysicalReset(PDMDevHlpGetVM(pDevIns), pData->GCPhysVRAM);
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