VirtualBox

Changeset 41420 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
May 23, 2012 3:14:05 PM (13 years ago)
Author:
vboxsync
Message:

PGM: More A20 fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r41391 r41420  
    25262526#ifdef PGM_WITH_A20
    25272527# define PGM_A20_IS_ENABLED(a_pVCpu)                        ((a_pVCpu)->pgm.s.fA20Enabled)
    2528 # define PGM_A20_APPLY(a_pVCpu, a_GCPhys)                   ((a_pVCpu)->pgm.s.GCPhysA20Mask & (a_GCPhys))
     2528# define PGM_A20_APPLY(a_pVCpu, a_GCPhys)                   ((a_GCPhys) & (a_pVCpu)->pgm.s.GCPhysA20Mask)
    25292529# define PGM_A20_APPLY_TO_VAR(a_pVCpu, a_GCPhysVar)         \
    2530     do { a_GCPhysVar = (a_pVCpu)->pgm.s.GCPhysA20Mask & a_GCPhysVar; } while (0)
     2530    do { a_GCPhysVar &= (a_pVCpu)->pgm.s.GCPhysA20Mask; } while (0)
     2531# define PGM_A20_ASSERT_MASKED(pVCpu, a_GCPhys)             Assert(PGM_A20_APPLY(pVCpu, a_GCPhys) == (a_GCPhys))
    25312532#else
    25322533# define PGM_A20_IS_ENABLED(a_pVCpu)                        (true)
    25332534# define PGM_A20_APPLY(a_pVCpu, a_GCPhys)                   (a_GCPhys)
    25342535# define PGM_A20_APPLY_TO_VAR(a_pVCpu, a_GCPhysVar)         do { } while (0)
     2536# define PGM_A20_ASSERT_MASKED(pVCpu, a_GCPhys)             do { } while (0)
    25352537#endif
    25362538/** @} */
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