Changeset 24265 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Nov 2, 2009 3:21:30 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r24195 r24265 2637 2637 int rc = SSMR3GetU32(pSSM, &cCpus); AssertRCReturn(rc, rc); 2638 2638 if (cCpus != pThis->cCpus) 2639 { 2640 LogRel(("APIC: Config mismatch - cCpus: saved=%#x config=%#x\n", cCpus, pThis->cCpus)); 2641 return VERR_SSM_LOAD_CONFIG_MISMATCH; 2642 } 2639 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - cCpus: saved=%#x config=%#x"), cCpus, pThis->cCpus); 2643 2640 bool fIoApic; 2644 2641 rc = SSMR3GetBool(pSSM, &fIoApic); AssertRCReturn(rc, rc); 2645 2642 if (fIoApic != pThis->fIoApic) 2646 { 2647 LogRel(("APIC: Config mismatch - fIoApic: saved=%RTbool config=%RTbool\n", fIoApic, pThis->fIoApic)); 2648 return VERR_SSM_LOAD_CONFIG_MISMATCH; 2649 } 2643 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - fIoApic: saved=%RTbool config=%RTbool"), fIoApic, pThis->fIoApic); 2650 2644 uint32_t uApicVersion; 2651 2645 rc = SSMR3GetU32(pSSM, &uApicVersion); AssertRCReturn(rc, rc); 2652 2646 if (uApicVersion != (uint32_t)pThis->enmVersion) 2653 { 2654 LogRel(("APIC: Config mismatch - uApicVersion: saved=%#x config=%#x\n", uApicVersion, pThis->enmVersion)); 2655 return VERR_SSM_LOAD_CONFIG_MISMATCH; 2656 } 2647 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - uApicVersion: saved=%#x config=%#x"), uApicVersion, pThis->enmVersion); 2657 2648 } 2658 2649 -
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r24087 r24265 789 789 rc = SSMR3GetIOPort(pSSM, &IOPortBaseCfg); AssertRCReturn(rc, rc); 790 790 if (IOPortBaseCfg != pThis->IOPortBaseCfg) 791 { 792 LogRel(("PIT: Config mismatch - IOPortBaseCfg: saved=%RTiop config=%RTiop\n", IOPortBaseCfg, pThis->IOPortBaseCfg)); 793 return VERR_SSM_LOAD_CONFIG_MISMATCH; 794 } 791 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - IOPortBaseCfg: saved=%RTiop config=%RTiop"), 792 IOPortBaseCfg, pThis->IOPortBaseCfg); 795 793 796 794 uint8_t u8Irq; 797 795 rc = SSMR3GetU8(pSSM, &u8Irq); AssertRCReturn(rc, rc); 798 796 if (u8Irq != pThis->channels[0].irq) 799 { 800 LogRel(("PIT: Config mismatch - u8Irq: saved=%#x config=%#x\n", u8Irq, pThis->channels[0].irq)); 801 return VERR_SSM_LOAD_CONFIG_MISMATCH; 802 } 797 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - u8Irq: saved=%#x config=%#x"), 798 u8Irq, pThis->channels[0].irq); 803 799 804 800 bool fSpeakerCfg; 805 801 rc = SSMR3GetBool(pSSM, &fSpeakerCfg); AssertRCReturn(rc, rc); 806 802 if (fSpeakerCfg != pThis->fSpeakerCfg) 807 { 808 LogRel(("PIT: Config mismatch - fSpeakerCfg: saved=%RTbool config=%RTbool\n", fSpeakerCfg, pThis->fSpeakerCfg)); 809 return VERR_SSM_LOAD_CONFIG_MISMATCH; 810 } 803 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - fSpeakerCfg: saved=%RTbool config=%RTbool"), 804 fSpeakerCfg, pThis->fSpeakerCfg); 811 805 } 812 806 -
trunk/src/VBox/Devices/PC/DevRTC.cpp
r24089 r24265 665 665 rc = SSMR3GetU8(pSSM, &u8Irq); AssertRCReturn(rc, rc); 666 666 if (u8Irq != pThis->irq) 667 { 668 LogRel(("RTC: Config mismatch - u8Irq: saved=%#x config=%#x\n", u8Irq, pThis->irq)); 669 return VERR_SSM_LOAD_CONFIG_MISMATCH; 670 } 667 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - u8Irq: saved=%#x config=%#x"), u8Irq, pThis->irq); 671 668 672 669 RTIOPORT IOPortBase; 673 670 rc = SSMR3GetIOPort(pSSM, &IOPortBase); AssertRCReturn(rc, rc); 674 671 if (IOPortBase != pThis->IOPortBase) 675 { 676 LogRel(("RTC: Config mismatch - IOPortBase: saved=%RTiop config=%RTiop\n", IOPortBase, pThis->IOPortBase)); 677 return VERR_SSM_LOAD_CONFIG_MISMATCH; 678 } 672 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - IOPortBase: saved=%RTiop config=%RTiop"), IOPortBase, pThis->IOPortBase); 679 673 680 674 bool fUTC;
Note:
See TracChangeset
for help on using the changeset viewer.