- Timestamp:
- Aug 1, 2023 10:58:33 AM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 158637
- Location:
- trunk/src/VBox/Devices/Bus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciGenericEcam.cpp
r99823 r100766 60 60 * Defined Constants And Macros * 61 61 *********************************************************************************************************************************/ 62 /** @todo As this shares a lot of code with the ICH9 PCI device we have to also keep the saved state version in sync. */ 62 63 /** Saved state version of the generic ECAM PCI bus device. */ 63 #define VBOX_PCIGENECAM_SAVED_STATE_VERSION 1 64 #define VBOX_PCIGENECAM_SAVED_STATE_VERSION VBOX_ICH9PCI_SAVED_STATE_VERSION_4KB_CFG_SPACE 65 /** 4KB config space */ 66 #define VBOX_ICH9PCI_SAVED_STATE_VERSION_4KB_CFG_SPACE 4 64 67 65 68 -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r99775 r100766 1163 1163 * Save IRQ states. 1164 1164 */ 1165 for (unsigned i = 0; i < RT_ELEMENTS(pThis->auPciApicIrqLevels); i++) 1166 pHlp->pfnSSMPutU32(pSSM, pThis->auPciApicIrqLevels[i]); 1165 if (pThis->PciBus.enmType == DEVPCIBUSTYPE_ICH9) 1166 { 1167 for (unsigned i = 0; i < RT_ELEMENTS(pThis->auPciApicIrqLevels); i++) 1168 pHlp->pfnSSMPutU32(pSSM, pThis->auPciApicIrqLevels[i]); 1169 } 1170 else if (pThis->PciBus.enmType == DEVPCIBUSTYPE_GENERIC_ECAM) 1171 { 1172 for (unsigned i = 0; i < RT_ELEMENTS(pThis->u.GenericEcam.auPciIrqLevels); i++) 1173 pHlp->pfnSSMPutU32(pSSM, pThis->u.GenericEcam.auPciIrqLevels[i]); 1174 } 1175 else 1176 AssertReleaseFailed(); 1167 1177 1168 1178 pHlp->pfnSSMPutU32(pSSM, UINT32_MAX); /* separator */ … … 1745 1755 * Load IRQ states. 1746 1756 */ 1747 for (unsigned i = 0; i < RT_ELEMENTS(pThis->auPciApicIrqLevels); i++) 1748 pHlp->pfnSSMGetU32V(pSSM, &pThis->auPciApicIrqLevels[i]); 1757 if (pThis->PciBus.enmType == DEVPCIBUSTYPE_ICH9) 1758 { 1759 for (unsigned i = 0; i < RT_ELEMENTS(pThis->auPciApicIrqLevels); i++) 1760 pHlp->pfnSSMGetU32V(pSSM, &pThis->auPciApicIrqLevels[i]); 1761 } 1762 else if (pThis->PciBus.enmType == DEVPCIBUSTYPE_GENERIC_ECAM) 1763 { 1764 for (unsigned i = 0; i < RT_ELEMENTS(pThis->u.GenericEcam.auPciIrqLevels); i++) 1765 pHlp->pfnSSMGetU32V(pSSM, &pThis->u.GenericEcam.auPciIrqLevels[i]); 1766 } 1767 else 1768 AssertReleaseFailed(); 1749 1769 1750 1770 /* separator */
Note:
See TracChangeset
for help on using the changeset viewer.