Changeset 105854 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 23, 2024 9:03:01 PM (5 months ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompFuncs.h
r105853 r105854 578 578 579 579 #ifdef IEMNATIVE_WITH_DELAYED_PC_UPDATING 580 STAM_COUNTER_INC(&pReNative->pVCpu->iem.s.StatNativePcUpdateTotal);581 582 580 pReNative->Core.offPc += cbInstr; 583 581 Log4(("offPc=%x cbInstr=%#x off=%#x\n", pReNative->Core.offPc, cbInstr, off)); … … 588 586 off = iemNativePcAdjustCheck(pReNative, off); 589 587 # endif 590 591 if (pReNative->cCondDepth) 592 off = iemNativeEmitPcWriteback(pReNative, off); 593 else 594 pReNative->Core.cInstrPcUpdateSkipped++; 595 588 # if defined(IEMNATIVE_WITH_TB_DEBUG_INFO) || defined(VBOX_WITH_STATISTICS) 589 STAM_COUNTER_INC(&pReNative->pVCpu->iem.s.StatNativePcUpdateTotal); 590 pReNative->Core.cInstrPcUpdateSkipped++; 591 # endif 596 592 #endif 597 593 … … 631 627 632 628 #ifdef IEMNATIVE_WITH_DELAYED_PC_UPDATING 633 STAM_COUNTER_INC(&pReNative->pVCpu->iem.s.StatNativePcUpdateTotal);634 635 629 pReNative->Core.offPc += cbInstr; 636 630 Log4(("offPc=%x cbInstr=%#x off=%#x\n", pReNative->Core.offPc, cbInstr, off)); … … 641 635 off = iemNativePcAdjustCheck(pReNative, off); 642 636 # endif 643 644 if (pReNative->cCondDepth) 645 off = iemNativeEmitPcWriteback(pReNative, off); 646 else 647 pReNative->Core.cInstrPcUpdateSkipped++; 637 # if defined(IEMNATIVE_WITH_TB_DEBUG_INFO) || defined(VBOX_WITH_STATISTICS) 638 STAM_COUNTER_INC(&pReNative->pVCpu->iem.s.StatNativePcUpdateTotal); 639 pReNative->Core.cInstrPcUpdateSkipped++; 640 # endif 648 641 #endif 649 642 … … 684 677 685 678 #ifdef IEMNATIVE_WITH_DELAYED_PC_UPDATING 686 STAM_COUNTER_INC(&pReNative->pVCpu->iem.s.StatNativePcUpdateTotal);687 688 679 pReNative->Core.offPc += cbInstr; 689 680 Log4(("offPc=%x cbInstr=%#x off=%#x\n", pReNative->Core.offPc, cbInstr, off)); … … 694 685 off = iemNativePcAdjustCheck(pReNative, off); 695 686 # endif 696 697 if (pReNative->cCondDepth) 698 off = iemNativeEmitPcWriteback(pReNative, off); 699 else 700 pReNative->Core.cInstrPcUpdateSkipped++; 687 # if defined(IEMNATIVE_WITH_TB_DEBUG_INFO) || defined(VBOX_WITH_STATISTICS) 688 STAM_COUNTER_INC(&pReNative->pVCpu->iem.s.StatNativePcUpdateTotal); 689 pReNative->Core.cInstrPcUpdateSkipped++; 690 # endif 701 691 #endif 702 692 -
trunk/src/VBox/VMM/VMMAll/IEMAllN8veRecompiler.cpp
r105853 r105854 2071 2071 #ifdef IEMNATIVE_WITH_DELAYED_PC_UPDATING 2072 2072 pReNative->Core.offPc = 0; 2073 # if defined(IEMNATIVE_WITH_TB_DEBUG_INFO) || defined(VBOX_WITH_STATISTICS) 2073 2074 pReNative->Core.cInstrPcUpdateSkipped = 0; 2075 # endif 2074 2076 # ifdef IEMNATIVE_WITH_DELAYED_PC_UPDATING_DEBUG 2075 2077 pReNative->Core.fDebugPcInitialized = false; … … 5788 5790 # endif 5789 5791 5792 pReNative->Core.offPc = 0; 5793 # if defined(IEMNATIVE_WITH_TB_DEBUG_INFO) || defined(VBOX_WITH_STATISTICS) 5790 5794 STAM_COUNTER_ADD(&pReNative->pVCpu->iem.s.StatNativePcUpdateDelayed, pReNative->Core.cInstrPcUpdateSkipped); 5791 pReNative->Core.offPc = 0;5792 5795 pReNative->Core.cInstrPcUpdateSkipped = 0; 5796 # endif 5793 5797 5794 5798 return off; -
trunk/src/VBox/VMM/include/IEMN8veRecompiler.h
r105853 r105854 1245 1245 * as long as possible. */ 1246 1246 uint32_t offPc; 1247 # if defined(IEMNATIVE_WITH_TB_DEBUG_INFO) || defined(VBOX_WITH_STATISTICS) 1247 1248 /** Number of instructions where we could skip the updating. */ 1248 1249 uint8_t cInstrPcUpdateSkipped; 1250 # endif 1249 1251 # ifdef IEMNATIVE_WITH_DELAYED_PC_UPDATING_DEBUG 1250 1252 /** Set after we've loaded PC into uPcUpdatingDebug at the first update. */
Note:
See TracChangeset
for help on using the changeset viewer.