Changeset 71790 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 9, 2018 4:20:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r69500 r71790 4318 4318 /* restore data */ 4319 4319 SSMR3GetBool(pSSM, &pThis->fLinkUp); 4320 SSMR3GetU32(pSSM, &pThis->u32RAP); 4320 int rc = SSMR3GetU32(pSSM, &pThis->u32RAP); 4321 AssertRCReturn(rc, rc); 4322 AssertLogRelMsgReturn(pThis->u32RAP < RT_ELEMENTS(pThis->aCSR), ("%#x\n", pThis->u32RAP), VERR_SSM_LOAD_CONFIG_MISMATCH); 4321 4323 SSMR3GetS32(pSSM, &pThis->iISR); 4322 4324 SSMR3GetU32(pSSM, &pThis->u32Lnkst); … … 4838 4840 static DECLCALLBACK(int) pcnetDestruct(PPDMDEVINS pDevIns) 4839 4841 { 4842 PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); 4840 4843 PPCNETSTATE pThis = PDMINS_2_DATA(pDevIns, PPCNETSTATE); 4841 PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns);4842 4844 4843 4845 if (PDMCritSectIsInitialized(&pThis->CritSect)) … … 4857 4859 static DECLCALLBACK(int) pcnetConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 4858 4860 { 4861 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 4859 4862 PPCNETSTATE pThis = PDMINS_2_DATA(pDevIns, PPCNETSTATE); 4860 4863 PPDMIBASE pBase; … … 4862 4865 int rc; 4863 4866 4864 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);4865 4867 Assert(RT_ELEMENTS(pThis->aBCR) == BCR_MAX_RAP); 4866 4868 Assert(RT_ELEMENTS(pThis->aMII) == MII_MAX_REG);
Note:
See TracChangeset
for help on using the changeset viewer.