VirtualBox

Changeset 44037 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Dec 5, 2012 9:43:18 AM (12 years ago)
Author:
vboxsync
Message:

VMMR3/TRPM: indent, removed bogus assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TRPM.cpp

    r43394 r44037  
    14941494VMMR3DECL(int) TRPMR3InjectEvent(PVM pVM, PVMCPU pVCpu, TRPMEVENT enmEvent)
    14951495{
    1496     PCPUMCTX pCtx;
    1497     int      rc;
    1498 
    1499     pCtx = CPUMQueryGuestCtxPtr(pVCpu);
     1496    PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    15001497    Assert(!PATMIsPatchGCAddr(pVM, pCtx->eip));
    15011498    Assert(!VMCPU_FF_ISSET(pVCpu, VMCPU_FF_INHIBIT_INTERRUPTS));
     
    15181515
    15191516        uint8_t u8Interrupt;
    1520         rc = PDMGetInterrupt(pVCpu, &u8Interrupt);
     1517        int rc = PDMGetInterrupt(pVCpu, &u8Interrupt);
    15211518        Log(("TRPMR3InjectEvent: CPU%d u8Interrupt=%d (%#x) rc=%Rrc\n", pVCpu->idCpu, u8Interrupt, u8Interrupt, rc));
    15221519        if (RT_SUCCESS(rc))
     
    15571554            else
    15581555                STAM_COUNTER_INC(&pVM->trpm.s.StatForwardFailNoHandler);
    1559 #ifdef VBOX_WITH_REM
     1556# ifdef VBOX_WITH_REM
    15601557            REMR3NotifyPendingInterrupt(pVM, pVCpu, u8Interrupt);
    1561 #endif
     1558# endif
    15621559        }
    15631560        else
     
    15661563            return HMR3IsActive(pVCpu) ? VINF_EM_RESCHEDULE_HM : VINF_EM_RESCHEDULE_REM; /* (Heed the halted state if this is changed!) */
    15671564        }
    1568 #else
     1565#else /* !TRPM_FORWARD_TRAPS_IN_GC */
    15691566        if (HMR3IsActive(pVCpu))
    15701567        {
    15711568            uint8_t u8Interrupt;
    1572             rc = PDMGetInterrupt(pVCpu, &u8Interrupt);
     1569            int rc = PDMGetInterrupt(pVCpu, &u8Interrupt);
    15731570            Log(("TRPMR3InjectEvent: u8Interrupt=%d (%#x) rc=%Rrc\n", u8Interrupt, u8Interrupt, rc));
    15741571            if (RT_SUCCESS(rc))
     
    15801577            }
    15811578        }
    1582         else
    1583             AssertRC(rc);
    1584 #endif
     1579#endif /* !TRPM_FORWARD_TRAPS_IN_GC */
    15851580    }
    15861581    /** @todo check if it's safe to translate the patch address to the original guest address.
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