VirtualBox

Ignore:
Timestamp:
Oct 19, 2011 2:36:27 PM (13 years ago)
Author:
vboxsync
Message:

VMM: -W4 warnings (MSC).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r38816 r39038  
    964964    uint64_t    exitCode = (uint64_t)SVM_EXIT_INVALID;
    965965    SVM_VMCB   *pVMCB;
    966     bool        fSyncTPR = false;
    967966    unsigned    cResume = 0;
    968     uint8_t     u8LastTPR;
    969967    PHMGLOBLCPUINFO pCpu = 0;
    970968    RTCCUINTREG uOldEFlags = ~(RTCCUINTREG)0;
     
    10921090     * Note! Interrupts must be disabled done *before* we check for TLB flushes; TLB
    10931091     *       shootdowns rely on this.
    1094      */                                               
     1092     */
    10951093    uOldEFlags = ASMIntDisableFlags();
    10961094    if (RTThreadPreemptIsPending(NIL_RTTHREAD))
     
    11111109    /* TPR caching using CR8 is only available in 64 bits mode or with 32 bits guests when X86_CPUID_AMD_FEATURE_ECX_CR8L is supported. */
    11121110    /* Note: we can't do this in LoadGuestState as PDMApicGetTPR can jump back to ring 3 (lock)!!!!!!!! (no longer true)
    1113      * @todo query and update the TPR only when it could have been changed (mmio access)
    11141111     */
     1112    /** @todo query and update the TPR only when it could have been changed (mmio access)
     1113     */
     1114    bool    fSyncTPR  = false;
     1115    uint8_t u8LastTPR = 0; /* Initialized for potentially stupid compilers. */
    11151116    if (pVM->hwaccm.s.fHasIoApic)
    11161117    {
     1118        /* TPR caching in CR8 */
    11171119        bool fPending;
    1118 
    1119         /* TPR caching in CR8 */
    11201120        rc2 = PDMApicGetTPR(pVCpu, &u8LastTPR, &fPending);
    11211121        AssertRC(rc2);
     
    15871587        else
    15881588        {
    1589             if ((u8LastTPR >> 4) != pVMCB->ctrl.IntCtrl.n.u8VTPR)
     1589            if ((uint8_t)(u8LastTPR >> 4) != pVMCB->ctrl.IntCtrl.n.u8VTPR)
    15901590            {
    15911591                rc2 = PDMApicSetTPR(pVCpu, pVMCB->ctrl.IntCtrl.n.u8VTPR << 4);   /* cr8 bits 3-0 correspond to bits 7-4 of the task priority mmio register. */
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