VirtualBox

Changeset 61736 in vbox


Ignore:
Timestamp:
Jun 17, 2016 8:00:50 AM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: VBOXSTRICTRC nits, inline the MMIO read.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r61735 r61736  
    15731573 * @param   puValue         Where to store the register value.
    15741574 */
    1575 static int apicReadRegister(PAPICDEV pApicDev, PVMCPU pVCpu, uint16_t offReg, uint32_t *puValue)
     1575DECLINLINE(VBOXSTRICTRC) apicReadRegister(PAPICDEV pApicDev, PVMCPU pVCpu, uint16_t offReg, uint32_t *puValue)
    15761576{
    15771577    VMCPU_ASSERT_EMT(pVCpu);
    15781578    Assert(offReg <= XAPIC_OFF_MAX_VALID);
    15791579
    1580     PXAPICPAGE pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu);
    1581     uint32_t   uValue = 0;
    1582     int        rc = VINF_SUCCESS;
     1580    PXAPICPAGE   pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu);
     1581    uint32_t     uValue = 0;
     1582    VBOXSTRICTRC rc = VINF_SUCCESS;
    15831583    switch (offReg)
    15841584    {
     
    16291629        {
    16301630            Assert(!XAPIC_IN_X2APIC_MODE(pVCpu));
    1631             rc = VBOXSTRICTRC_VAL(apicGetTimerCcr(pVCpu, VINF_IOM_R3_MMIO_READ, &uValue));
     1631            rc = apicGetTimerCcr(pVCpu, VINF_IOM_R3_MMIO_READ, &uValue);
    16321632            break;
    16331633        }
     
    16471647        {
    16481648            Assert(!XAPIC_IN_X2APIC_MODE(pVCpu));
    1649             rc = PDMDevHlpDBGFStop(pApicDev->CTX_SUFF(pDevIns), RT_SRC_POS, "VCPU[%u]: offReg=%#RX16\n", pVCpu->idCpu, offReg);
     1649            rc = PDMDevHlpDBGFStop(pApicDev->CTX_SUFF(pDevIns), RT_SRC_POS, "VCPU[%u]: offReg=%#RX16\n", pVCpu->idCpu,
     1650                                          offReg);
    16501651            apicSetError(pVCpu, XAPIC_ESR_ILLEGAL_REG_ADDRESS);
    16511652            break;
     
    16671668 * @param   uValue          The register value.
    16681669 */
    1669 static VBOXSTRICTRC apicWriteRegister(PAPICDEV pApicDev, PVMCPU pVCpu, uint16_t offReg, uint32_t uValue)
     1670DECLINLINE(VBOXSTRICTRC) apicWriteRegister(PAPICDEV pApicDev, PVMCPU pVCpu, uint16_t offReg, uint32_t uValue)
    16701671{
    16711672    VMCPU_ASSERT_EMT(pVCpu);
     
    25352536    STAM_COUNTER_INC(&pVCpu->apic.s.CTX_SUFF(StatMmioRead));
    25362537
    2537     int rc = apicReadRegister(pApicDev, pVCpu, offReg, &uValue);
     2538    int rc = VBOXSTRICTRC_VAL(apicReadRegister(pApicDev, pVCpu, offReg, &uValue));
    25382539    *(uint32_t *)pv = uValue;
    25392540
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette