VirtualBox

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


Ignore:
Timestamp:
Sep 27, 2013 11:04:41 AM (11 years ago)
Author:
vboxsync
Message:

PGMPhys.cpp: DEBUG_bird hack for loading new ROM on reset (snapshot fun).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r47815 r48728  
    36933693
    36943694                if (memcmp(pvDstPage, pbSrcPage, RT_MIN(cbSrcLeft, PAGE_SIZE)))
     3695                {
     3696# ifdef DEBUG_bird /* This is darn handy for EFI debugging w/ snapshots, should be made default later. */
     3697                    void *pvDstPageW;
     3698                    rc = pgmPhysPageMap(pVM, &pRom->aPages[iPage].Virgin, GCPhys, &pvDstPageW);
     3699                    AssertRCReturn(rc, rc);
     3700                    memcpy(pvDstPageW, pbSrcPage, RT_MIN(cbSrcLeft, PAGE_SIZE));
     3701# else
    36953702                    LogRel(("pgmR3PhysRomReset: %RGp rom page changed (%s) - loaded saved state?\n",
    36963703                            GCPhys, pRom->pszDesc));
     3704# endif
     3705                }
    36973706                cbSrcLeft -= RT_MIN(cbSrcLeft, PAGE_SIZE);
    36983707            }
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