Changeset 20684 in vbox
- Timestamp:
- Jun 18, 2009 11:48:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r20671 r20684 117 117 118 118 # if PGM_GST_TYPE == PGM_TYPE_PAE 119 unsigned iPDSrc ;119 unsigned iPDSrc = 0; /* initialized to shut up gcc */ 120 120 X86PDPE PdpeSrc; 121 121 PGSTPD pPDSrc = pgmGstGetPaePDPtr(&pVCpu->pgm.s, pvFault, &iPDSrc, &PdpeSrc); 122 122 123 123 # elif PGM_GST_TYPE == PGM_TYPE_AMD64 124 unsigned iPDSrc ;124 unsigned iPDSrc = 0; /* initialized to shut up gcc */ 125 125 PX86PML4E pPml4eSrc; 126 126 X86PDPE PdpeSrc; … … 1669 1669 const unsigned iPDDst = (GCPtrPage >> SHW_PD_SHIFT) & SHW_PD_MASK; 1670 1670 const unsigned iPdpt = (GCPtrPage >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64; 1671 PX86PDPAE pPDDst ;1672 PX86PDPT pPdptDst ;1671 PX86PDPAE pPDDst = NULL; /* initialized to shut up gcc */ 1672 PX86PDPT pPdptDst = NULL; /* initialized to shut up gcc */ 1673 1673 1674 1674 int rc = pgmShwGetLongModePDPtr(pVCpu, GCPtrPage, NULL, &pPdptDst, &pPDDst); … … 1957 1957 const unsigned iPDDst = ((GCPtrPage >> SHW_PD_SHIFT) & SHW_PD_MASK); 1958 1958 const unsigned iPdpt = (GCPtrPage >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64; NOREF(iPdpt); 1959 PX86PDPAE pPDDst ;1959 PX86PDPAE pPDDst = NULL; /* initialized to shut up gcc */ 1960 1960 X86PDEPAE PdeDst; 1961 PX86PDPT pPdptDst ;1961 PX86PDPT pPdptDst = NULL; /* initialized to shut up gcc */ 1962 1962 1963 1963 int rc = pgmShwGetLongModePDPtr(pVCpu, GCPtrPage, NULL, &pPdptDst, &pPDDst); … … 2493 2493 const unsigned iPdpt = (GCPtrPage >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64; 2494 2494 const unsigned iPDDst = (GCPtrPage >> SHW_PD_SHIFT) & SHW_PD_MASK; 2495 PX86PDPAE pPDDst ;2496 PX86PDPT pPdptDst ;2495 PX86PDPAE pPDDst = NULL; /* initialized to shut up gcc */ 2496 PX86PDPT pPdptDst = NULL; /* initialized to shut up gcc */ 2497 2497 rc = pgmShwGetLongModePDPtr(pVCpu, GCPtrPage, NULL, &pPdptDst, &pPDDst); 2498 2498 AssertRCSuccessReturn(rc, rc); … … 2913 2913 # elif PGM_SHW_TYPE == PGM_TYPE_PAE 2914 2914 const unsigned iPDDst = (GCPtrPage >> SHW_PD_SHIFT) & SHW_PD_MASK; 2915 PPGMPOOLPAGE pShwPde ;2915 PPGMPOOLPAGE pShwPde = NULL; /* initialized to shut up gcc */ 2916 2916 PX86PDPAE pPDDst; 2917 2917 PSHWPDE pPdeDst; … … 2928 2928 const unsigned iPdpt = (GCPtrPage >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64; 2929 2929 const unsigned iPDDst = (GCPtrPage >> SHW_PD_SHIFT) & SHW_PD_MASK; 2930 PX86PDPAE pPDDst ;2931 PX86PDPT pPdptDst ;2930 PX86PDPAE pPDDst = NULL; /* initialized to shut up gcc */ 2931 PX86PDPT pPdptDst= NULL; /* initialized to shut up gcc */ 2932 2932 rc = pgmShwGetLongModePDPtr(pVCpu, GCPtrPage, NULL, &pPdptDst, &pPDDst); 2933 2933 AssertRCSuccessReturn(rc, rc); … … 3588 3588 for (;iPdpt <= SHW_PDPT_MASK; iPdpt++) 3589 3589 { 3590 unsigned iPDSrc ;3590 unsigned iPDSrc = 0; /* initialized to shut up gcc */ 3591 3591 PPGMPOOLPAGE pShwPde = NULL; 3592 3592 PX86PDPE pPdpeDst;
Note:
See TracChangeset
for help on using the changeset viewer.