VirtualBox

Ignore:
Timestamp:
Oct 1, 2024 12:57:32 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164976
Message:

VMM/IEM: Added some basic stats & debug info for postponed EFLAGS calcs. Moved debug info structures from IEMInternal.h and into IEMN8veRecompiler.h. bugref:10720

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/target-x86/IEMAllN8veEmit-x86.h

    r106187 r106192  
    255255        pReNative->PostponedEfl.idxReg1 = UINT8_MAX;
    256256        pReNative->PostponedEfl.idxReg2 = UINT8_MAX;
     257#if defined(VBOX_WITH_STATISTICS) || defined(IEMNATIVE_WITH_TB_DEBUG_INFO)
     258        STAM_PROFILE_ADD_PERIOD(&pReNative->pVCpu->iem.s.StatNativeEflPostponedEmits, pReNative->PostponedEfl.cEmits);
     259        pReNative->PostponedEfl.cEmits = 0;
     260#endif
    257261    }
    258262}
     
    362366                                                   uint32_t bmExtraTlbMissRegs = 0)
    363367{
     368#ifdef IEMNATIVE_WITH_TB_DEBUG_INFO
     369    iemNativeDbgInfoAddPostponedEFlagsCalc(pReNative, off, pReNative->PostponedEfl.enmOp, pReNative->PostponedEfl.cOpBits,
     370                                           pReNative->PostponedEfl.cEmits);
     371#endif
     372
    364373    /*
    365374     * In the TB exit code path we cannot do regular register allocation.  Nor
     
    459468    IEMNATIVE_ASSERT_INSTR_BUF_ENSURE(pReNative, off);
    460469
     470#if defined(VBOX_WITH_STATISTICS) || defined(IEMNATIVE_WITH_TB_DEBUG_INFO)
     471    pReNative->PostponedEfl.cEmits++;
     472#endif
    461473    return off;
    462474}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette