VirtualBox

Changeset 11526 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 21, 2008 9:49:44 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35089
Message:

Moved GCPhys4MBPSEMask init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r11525 r11526  
    11281128    pVM->pgm.s.GCPhysGstCR3Monitored = NIL_RTGCPHYS;
    11291129    pVM->pgm.s.fA20Enabled      = true;
     1130    pVM->pgm.s.GCPhys4MBPSEMask = RT_BIT_64(32) - 1; /* default; checked later */
    11301131    pVM->pgm.s.pGstPaePDPTHC    = NULL;
    11311132    pVM->pgm.s.pGstPaePDPTGC    = 0;
     
    18051806    }
    18061807
    1807     return rc;
    1808 }
    1809 
    1810 
    1811 /**
    1812  * Applies relocations to data and code managed by this
    1813  * component. This function will be called at init and
    1814  * whenever the VMM need to relocate it self inside the GC.
    1815  *
    1816  * @param   pVM     The VM.
    1817  * @param   offDelta    Relocation delta relative to old location.
    1818  */
    1819 PGMR3DECL(void) PGMR3Relocate(PVM pVM, RTGCINTPTR offDelta)
    1820 {
    1821     LogFlow(("PGMR3Relocate\n"));
    1822 
    18231808    /* Note that AMD uses all the 8 reserved bits for the address (so 40 bits in total); Intel only goes up to 36 bits, so
    18241809     * we stick to 36 as well.
     
    18341819        pVM->pgm.s.GCPhys4MBPSEMask = RT_BIT_64(32) - 1;
    18351820
    1836     LogRel(("PGMR3Relocate: 4 MB PSE mask %VGp\n", pVM->pgm.s.GCPhys4MBPSEMask));
    1837 
     1821    LogRel(("PGMR3InitFinalize: 4 MB PSE mask %VGp\n", pVM->pgm.s.GCPhys4MBPSEMask));
     1822
     1823    return rc;
     1824}
     1825
     1826
     1827/**
     1828 * Applies relocations to data and code managed by this
     1829 * component. This function will be called at init and
     1830 * whenever the VMM need to relocate it self inside the GC.
     1831 *
     1832 * @param   pVM     The VM.
     1833 * @param   offDelta    Relocation delta relative to old location.
     1834 */
     1835PGMR3DECL(void) PGMR3Relocate(PVM pVM, RTGCINTPTR offDelta)
     1836{
     1837    LogFlow(("PGMR3Relocate\n"));
    18381838
    18391839    /*
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