Changeset 80181 in vbox for trunk/src/VBox/VMM/VMMR3/PGM.cpp
- Timestamp:
- Aug 7, 2019 10:49:52 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGM.cpp
r80180 r80181 804 804 pPGM->pGstAmd64Pml4R0 = NIL_RTR0PTR; 805 805 #endif 806 pPGM->pGst32BitPdRC = NIL_RTRCPTR;807 pPGM->pGstPaePdptRC = NIL_RTRCPTR;808 806 for (unsigned i = 0; i < RT_ELEMENTS(pVCpu->pgm.s.apGstPaePDsR3); i++) 809 807 { … … 812 810 pPGM->apGstPaePDsR0[i] = NIL_RTR0PTR; 813 811 #endif 814 pPGM->apGstPaePDsRC[i] = NIL_RTRCPTR;815 812 pPGM->aGCPhysGstPaePDs[i] = NIL_RTGCPHYS; 816 813 pPGM->aGstPaePdpeRegs[i].u = UINT64_MAX; … … 893 890 pVM->pgm.s.pStatsR3 = (PGMSTATS *)pv; 894 891 pVM->pgm.s.pStatsR0 = MMHyperCCToR0(pVM, pv); 895 pVM->pgm.s.pStatsRC = MMHyperCCToRC(pVM, pv);896 892 pv = (uint8_t *)pv + RT_ALIGN_Z(sizeof(PGMSTATS), 64); 897 893 … … 900 896 pVM->aCpus[iCpu].pgm.s.pStatsR3 = (PGMCPUSTATS *)pv; 901 897 pVM->aCpus[iCpu].pgm.s.pStatsR0 = MMHyperCCToR0(pVM, pv); 902 pVM->aCpus[iCpu].pgm.s.pStatsRC = MMHyperCCToRC(pVM, pv);903 898 904 899 pv = (uint8_t *)pv + RT_ALIGN_Z(sizeof(PGMCPUSTATS), 64); … … 939 934 rc = MMHyperAlloc(pVM, sizeof(PGMTREES), 0, MM_TAG_PGM, (void **)&pVM->pgm.s.pTreesR3); 940 935 if (RT_SUCCESS(rc)) 941 {942 936 pVM->pgm.s.pTreesR0 = MMHyperR3ToR0(pVM, pVM->pgm.s.pTreesR3); 943 pVM->pgm.s.pTreesRC = MMHyperR3ToRC(pVM, pVM->pgm.s.pTreesR3);944 }945 937 946 938 /* … … 1873 1865 1874 1866 /* 1875 * Trees.1876 */1877 pVM->pgm.s.pTreesRC = MMHyperR3ToRC(pVM, pVM->pgm.s.pTreesR3);1878 1879 /*1880 1867 * Ram ranges. 1881 1868 */ … … 1887 1874 pCur->pSelfRC = MMHyperCCToRC(pVM, pCur); 1888 1875 pgmR3PhysRelinkRamRanges(pVM); 1889 1890 /* Flush the RC TLB. */1891 for (unsigned i = 0; i < PGM_RAMRANGE_TLB_ENTRIES; i++)1892 pVM->pgm.s.apRamRangesTlbRC[i] = NIL_RTRCPTR;1893 1876 } 1894 1877 … … 1957 1940 PGMRELOCHANDLERARGS Args = { offDelta, pVM }; 1958 1941 RTAvlroGCPhysDoWithAll(&pVM->pgm.s.pTreesR3->PhysHandlers, true, pgmR3RelocatePhysHandler, &Args); 1959 pVM->pgm.s.pLastPhysHandlerRC = NIL_RTRCPTR;1960 1942 1961 1943 PPGMPHYSHANDLERTYPEINT pCurPhysType; … … 1972 1954 */ 1973 1955 pgmR3PoolRelocate(pVM); 1974 1975 #ifdef VBOX_WITH_STATISTICS1976 /*1977 * Statistics.1978 */1979 pVM->pgm.s.pStatsRC = MMHyperCCToRC(pVM, pVM->pgm.s.pStatsR3);1980 for (VMCPUID iCpu = 0; iCpu < pVM->cCpus; iCpu++)1981 pVM->aCpus[iCpu].pgm.s.pStatsRC = MMHyperCCToRC(pVM, pVM->aCpus[iCpu].pgm.s.pStatsR3);1982 #endif1983 1956 } 1984 1957
Note:
See TracChangeset
for help on using the changeset viewer.