Changeset 25272 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Dec 9, 2009 2:57:54 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55811
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATMSSM.cpp
r23817 r25272 855 855 pPatchRec->patch.FixupTree = 0; 856 856 pPatchRec->patch.nrFixups = 0; /* increased by patmPatchAddReloc32 */ 857 for (int i=0;i<patch.patch.nrFixups;i++)857 for (int j=0;j<patch.patch.nrFixups;j++) 858 858 { 859 859 RELOCREC rec; … … 881 881 { 882 882 Assert(pPatchRec->patch.cbPatchJump == SIZEOF_NEARJUMP32 || pPatchRec->patch.cbPatchJump == SIZEOF_NEAR_COND_JUMP32); 883 unsigned offset = (pPatchRec->patch.cbPatchJump == SIZEOF_NEARJUMP32) ? 1 : 2;883 unsigned offset2 = (pPatchRec->patch.cbPatchJump == SIZEOF_NEARJUMP32) ? 1 : 2; 884 884 885 885 /** @todo This will fail & crash in patmCorrectFixup if the page isn't present … … 887 887 * (pPrivInstrGC=0x8069e051). */ 888 888 AssertLogRelMsg(pPatchRec->patch.pPrivInstrHC, ("%RRv rc=%Rrc uState=%u\n", pPatchRec->patch.pPrivInstrGC, rc2, pPatchRec->patch.uState)); 889 rec.pRelocPos = pPatchRec->patch.pPrivInstrHC + offset ;889 rec.pRelocPos = pPatchRec->patch.pPrivInstrHC + offset2; 890 890 pFixup = (RTRCPTR *)rec.pRelocPos; 891 891 } … … 909 909 910 910 pPatchRec->patch.nrPatch2GuestRecs = 0; /* incremented by patmr3AddP2GLookupRecord */ 911 for (uint32_t i=0;i<nrPatch2GuestRecs;i++)911 for (uint32_t j=0;j<nrPatch2GuestRecs;j++) 912 912 { 913 913 #if 0
Note:
See TracChangeset
for help on using the changeset viewer.