VirtualBox

Ignore:
Timestamp:
Dec 4, 2024 3:20:14 PM (6 weeks ago)
Author:
vboxsync
Message:

VMM: Cleaning up ARMv8 / x86 split. jiraref:VBP-1470

File:
1 edited

Legend:

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

    r107194 r107227  
    63226322*********************************************************************************************************************************/
    63236323
    6324 #if !defined(VBOX_VMM_TARGET_ARMV8)
     6324#ifdef VBOX_VMM_TARGET_X86
    63256325/**
    63266326 * Sets the Address Gate 20 state.
     
    63356335    if (pVCpu->pgm.s.fA20Enabled != fEnable)
    63366336    {
    6337 #ifdef VBOX_WITH_NESTED_HWVIRT_VMX
     6337# ifdef VBOX_WITH_NESTED_HWVIRT_VMX
    63386338        PCCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    63396339        if (   CPUMIsGuestInVmxRootMode(pCtx)
     
    63436343            return;
    63446344        }
    6345 #endif
     6345# endif
    63466346        pVCpu->pgm.s.fA20Enabled = fEnable;
    63476347        pVCpu->pgm.s.GCPhysA20Mask = ~((RTGCPHYS)!fEnable << 20);
    63486348        if (VM_IS_NEM_ENABLED(pVCpu->CTX_SUFF(pVM)))
    63496349            NEMR3NotifySetA20(pVCpu, fEnable);
    6350 #ifdef PGM_WITH_A20
     6350# ifdef PGM_WITH_A20
    63516351        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
    63526352        pgmR3RefreshShadowModeAfterA20Change(pVCpu);
    63536353        HMFlushTlb(pVCpu);
    6354 #endif
    6355 #if 0 /* PGMGetPage will apply the A20 mask to the GCPhys it returns, so we must invalid both sides of the TLB. */
     6354# endif
     6355# if 0 /* PGMGetPage will apply the A20 mask to the GCPhys it returns, so we must invalid both sides of the TLB. */
    63566356        IEMTlbInvalidateAllPhysical(pVCpu);
    6357 #else
     6357# else
    63586358        IEMTlbInvalidateAllGlobal(pVCpu);
    6359 #endif
     6359# endif
    63606360        STAM_REL_COUNTER_INC(&pVCpu->pgm.s.cA20Changes);
    63616361    }
    63626362}
    6363 #endif
    6364 
     6363#endif /* VBOX_VMM_TARGET_X86 */
     6364
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