Changeset 21928 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 2, 2009 5:20:20 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50595
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r21168 r21928 2659 2659 static int pgmR3LoadLocked(PVM pVM, PSSMHANDLE pSSM, uint32_t u32Version) 2660 2660 { 2661 PPGM pPGM = &pVM->pgm.s; 2661 2662 int rc; 2662 PPGM pPGM = &pVM->pgm.s;2663 2663 uint32_t u32Sep; 2664 2664 … … 2671 2671 AssertLogRelRCReturn(rc, rc); 2672 2672 2673 for ( unsigned i=0;i<pVM->cCPUs;i++)2673 for (VMCPUID i = 0; i < pVM->cCPUs; i++) 2674 2674 { 2675 PVMCPU pVCpu = &pVM->aCpus[i]; 2676 2677 rc = SSMR3GetStruct(pSSM, &pVCpu->pgm.s, &s_aPGMCpuFields[0]); 2675 rc = SSMR3GetStruct(pSSM, &pVM->aCpus[i].pgm.s, &s_aPGMCpuFields[0]); 2678 2676 AssertLogRelRCReturn(rc, rc); 2679 2677 } 2680 2678 } 2681 else 2682 if (u32Version >= PGM_SAVED_STATE_VERSION_RR_DESC) 2683 { 2679 else if (u32Version >= PGM_SAVED_STATE_VERSION_RR_DESC) 2680 { 2681 AssertRelease(pVM->cCPUs == 1); 2682 2684 2683 PGMOLD pgmOld; 2685 2686 AssertRelease(pVM->cCPUs == 1);2687 2688 2684 rc = SSMR3GetStruct(pSSM, &pgmOld, &s_aPGMFields_Old[0]); 2689 2685 AssertLogRelRCReturn(rc, rc); … … 2785 2781 */ 2786 2782 i = 0; 2787 for (PPGMRAMRANGE pRam = pPGM->pRamRangesR3; pRam; pRam = pRam->pNextR3, i++) 2788 { 2789 /** @todo MMIO ranges may move (PCI reconfig), we currently assume they don't. */ 2790 2783 for (PPGMRAMRANGE pRam = pPGM->pRamRangesR3; ; pRam = pRam->pNextR3, i++) 2784 { 2791 2785 /* Check the seqence number / separator. */ 2792 2786 rc = SSMR3GetU32(pSSM, &u32Sep); … … 2800 2794 return VERR_SSM_DATA_UNIT_FORMAT_CHANGED; 2801 2795 } 2796 AssertLogRelReturn(pRam, VERR_SSM_DATA_UNIT_FORMAT_CHANGED); 2802 2797 2803 2798 /* Get the range details. */
Note:
See TracChangeset
for help on using the changeset viewer.