VirtualBox

Changeset 42780 in vbox for trunk


Ignore:
Timestamp:
Aug 11, 2012 10:48:18 PM (12 years ago)
Author:
vboxsync
Message:

EMAll.cpp: debugging hacks.

File:
1 edited

Legend:

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

    r42777 r42780  
    5353//# define VBOX_COMPARE_IEM_AND_EM /* debugging... */
    5454//# define VBOX_SAME_AS_EM
    55 //# define VBOX_COMPARE_IEM_FIRST
     55//# define VBOX_COMPARE_IEM_LAST
    5656#endif
    5757
     
    104104static CPUMCTX g_IemCtx;
    105105extern uint8_t g_abIemWrote[256];
     106#if defined(VBOX_COMPARE_IEM_FIRST) || defined(VBOX_COMPARE_IEM_LAST)
    106107extern size_t  g_cbIemWrote;
     108#else
     109static size_t  g_cbIemWrote;
     110#endif
    107111#endif
    108112
     
    458462
    459463
    460 #ifdef VBOX_COMPARE_IEM_AND_EM
     464#if defined(VBOX_COMPARE_IEM_FIRST) || defined(VBOX_COMPARE_IEM_LAST)
    461465static void emCompareWithIem(PVMCPU pVCpu, PCCPUMCTX pEmCtx, PCCPUMCTX pIemCtx,
    462466                             VBOXSTRICTRC rcEm, VBOXSTRICTRC rcIem,
     
    690694
    691695#  ifdef VBOX_COMPARE_IEM_FIRST
    692 # error
    693696    /* IEM */
    694697    VBOXSTRICTRC rcIem = IEMExecOneBypassEx(pVCpu, pRegFrame, NULL);
     
    736739
    737740#  ifdef VBOX_COMPARE_IEM_LAST
    738 # error
    739741    /* IEM */
    740742    pVCpu->fLocalForcedActions = (pVCpu->fLocalForcedActions & ~g_fInterestingFFs) | (g_fIncomingFFs & g_fInterestingFFs);
     
    750752
    751753#  if defined(VBOX_COMPARE_IEM_LAST) || defined(VBOX_COMPARE_IEM_FIRST)
    752 # error
    753754    emCompareWithIem(pVCpu, &g_EmCtx, &g_IemCtx, rcEm, rcIem, 0, 0);
    754755#  endif
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