Changeset 18861 in vbox
- Timestamp:
- Apr 10, 2009 9:21:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r18665 r18861 609 609 * Defined Constants And Macros * 610 610 *******************************************************************************/ 611 /** Saved state data unit version. */ 612 #define PGM_SAVED_STATE_VERSION 7 613 /** Saved state data unit version. */ 611 /** Saved state data unit version for 2.2.2 and later. */ 612 #define PGM_SAVED_STATE_VERSION 8 613 /** Saved state data unit version for 2.2.0. */ 614 #define PGM_SAVED_STATE_VERSION_RR_DESC 7 615 /** Saved state data unit version 2.1.x and earlier. */ 614 616 #define PGM_SAVED_STATE_VERSION_OLD_PHYS_CODE 6 615 617 … … 2506 2508 * Load basic data (required / unaffected by relocation). 2507 2509 */ 2508 if (u32Version >= PGM_SAVED_STATE_VERSION )2510 if (u32Version >= PGM_SAVED_STATE_VERSION_RR_DESC) 2509 2511 { 2510 2512 rc = SSMR3GetStruct(pSSM, pPGM, &s_aPGMFields[0]); … … 2629 2631 return VERR_SSM_DATA_UNIT_FORMAT_CHANGED; 2630 2632 } 2631 char szDesc[256]; 2633 size_t cchDesc = 0; 2634 char szDesc[256]; 2632 2635 szDesc[0] = '\0'; 2633 if (u32Version >= PGM_SAVED_STATE_VERSION )2636 if (u32Version >= PGM_SAVED_STATE_VERSION_RR_DESC) 2634 2637 { 2635 2638 rc = SSMR3GetStrZ(pSSM, szDesc, sizeof(szDesc)); 2636 2639 if (RT_FAILURE(rc)) 2637 2640 return rc; 2641 /* Since we've modified the description strings in r45878, only compare 2642 them if the saved state is more recent. */ 2643 if (u32Version != PGM_SAVED_STATE_VERSION_RR_DESC) 2644 cchDesc = strlen(szDesc); 2638 2645 } 2639 2646 … … 2648 2655 || GCPhysLast != pRam->GCPhysLast 2649 2656 || cb != pRam->cb 2650 || (szDesc[0] && strcmp(szDesc, pRam->pszDesc)) ) 2657 || ( cchDesc 2658 && strcmp(szDesc, pRam->pszDesc)) ) 2651 2659 /* Hack for PDMDevHlpPhysReserve(pDevIns, 0xfff80000, 0x80000, "High ROM Region"); */ 2652 2660 && ( u32Version != PGM_SAVED_STATE_VERSION_OLD_PHYS_CODE … … 2675 2683 2676 2684 uint32_t cPages = (GCPhysLast - GCPhys + 1) >> PAGE_SHIFT; 2677 if (u32Version >= PGM_SAVED_STATE_VERSION )2685 if (u32Version >= PGM_SAVED_STATE_VERSION_RR_DESC) 2678 2686 { 2679 2687 /* … … 2831 2839 */ 2832 2840 if ( u32Version != PGM_SAVED_STATE_VERSION 2841 && u32Version != PGM_SAVED_STATE_VERSION_RR_DESC 2833 2842 && u32Version != PGM_SAVED_STATE_VERSION_OLD_PHYS_CODE) 2834 2843 {
Note:
See TracChangeset
for help on using the changeset viewer.