Changeset 61841 in vbox
- Timestamp:
- Jun 23, 2016 7:31:37 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/PC/DevIoApic.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevIoApic.cpp
r61339 r61841 75 75 #define DEBUG_IOAPIC 76 76 #define IOAPIC_NUM_PINS 0x18 77 78 /** The old code (this file) */ 79 #define IOAPIC_SAVED_STATE_VERSION_VBOX_50 1 80 /** The new code (DevIOAPIC_New). We need to be able to load this SSM as well. */ 81 #define IOAPIC_SAVED_STATE_VERSION_NEW_CODE 2 77 82 78 83 … … 701 706 { 702 707 PIOAPIC pThis = PDMINS_2_DATA(pDevIns, PIOAPIC); 703 if (uVersion != 1) 708 if ( uVersion != IOAPIC_SAVED_STATE_VERSION_VBOX_50 709 && uVersion != IOAPIC_SAVED_STATE_VERSION_NEW_CODE) 704 710 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; 711 712 uint32_t ignore; 713 if (uVersion == IOAPIC_SAVED_STATE_VERSION_NEW_CODE) 714 SSMR3GetU32(pSSM, &ignore); 705 715 706 716 SSMR3GetU8(pSSM, &pThis->id); … … 831 841 } 832 842 833 rc = PDMDevHlpSSMRegister(pDevIns, 1 /* version */, sizeof(*pThis), ioapicSaveExec, ioapicLoadExec); 843 rc = PDMDevHlpSSMRegister(pDevIns, IOAPIC_SAVED_STATE_VERSION_VBOX_50, sizeof(*pThis), 844 ioapicSaveExec, ioapicLoadExec); 834 845 if (RT_FAILURE(rc)) 835 846 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.

