VirtualBox

Changeset 99995 in vbox for trunk


Ignore:
Timestamp:
May 26, 2023 10:15:38 PM (16 months ago)
Author:
vboxsync
Message:

VMM/EM: Some IEM/HM comparison logging for later use. bugref:10464

File:
1 edited

Legend:

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

    r99982 r99995  
    24722472                case EMSTATE_IEM:
    24732473                {
     2474#if 0 /* For comparing HM and IEM (@bugref{10464}). */
     2475                    PCPUMCTX const pCtx = &pVCpu->cpum.GstCtx;
     2476                    PCX86FXSTATE const pX87 = &pCtx->XState.x87;
     2477                    Log11(("eax=%08x ebx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x\n"
     2478                           "eip=%08x esp=%08x ebp=%08x eflags=%08x\n"
     2479                           "cs=%04x ss=%04x ds=%04x es=%04x fs=%04x gs=%04x\n"
     2480                           "fsw=%04x fcw=%04x ftw=%02x top=%u%s%s%s%s%s%s%s%s%s\n"
     2481                           "st0=%.10Rhxs st1=%.10Rhxs st2=%.10Rhxs st3=%.10Rhxs\n"
     2482                           "st4=%.10Rhxs st5=%.10Rhxs st6=%.10Rhxs st7=%.10Rhxs\n",
     2483                           pCtx->eax, pCtx->ebx, pCtx->ecx, pCtx->edx, pCtx->edi, pCtx->edi,
     2484                           pCtx->eip, pCtx->esp, pCtx->ebp, pCtx->eflags.u,
     2485                           pCtx->cs.Sel, pCtx->ss.Sel, pCtx->ds.Sel, pCtx->es.Sel, pCtx->fs.Sel, pCtx->gs.Sel,
     2486                           pX87->FSW, pX87->FCW, pX87->FTW, X86_FSW_TOP_GET(pX87->FSW),
     2487                           pX87->FSW & X86_FSW_ES ? " ES!" : "",
     2488                           pX87->FSW & X86_FSW_IE ? " IE" : "",
     2489                           pX87->FSW & X86_FSW_DE ? " DE" : "",
     2490                           pX87->FSW & X86_FSW_SF ? " SF" : "",
     2491                           pX87->FSW & X86_FSW_B  ? " B!" : "",
     2492                           pX87->FSW & X86_FSW_C0 ? " C0" : "",
     2493                           pX87->FSW & X86_FSW_C1 ? " C1" : "",
     2494                           pX87->FSW & X86_FSW_C2 ? " C2" : "",
     2495                           pX87->FSW & X86_FSW_C3 ? " C3" : "",
     2496                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(0)],
     2497                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(1)],
     2498                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(2)],
     2499                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(3)],
     2500                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(4)],
     2501                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(5)],
     2502                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(6)],
     2503                           &pX87->aRegs[/*X86_FSW_TOP_GET_ST(pVCpu->cpum.GstCtx.XState.x87.FSW,*/(7)]));
     2504                    DBGFR3DisasInstrCurrentLogInternal(pVCpu, NULL);
     2505#endif
     2506
    24742507                    uint32_t cInstructions = 0;
    24752508#if 0 /* For testing purposes. */
    2476                     STAM_PROFILE_START(&pVCpu->em.s.StatHmExec, x1);
     2509                    //STAM_PROFILE_START(&pVCpu->em.s.StatHmExec, x1);
    24772510                    rc = VBOXSTRICTRC_TODO(EMR3HmSingleInstruction(pVM, pVCpu, EM_ONE_INS_FLAGS_RIP_CHANGE));
    2478                     STAM_PROFILE_STOP(&pVCpu->em.s.StatHmExec, x1);
     2511                    //STAM_PROFILE_STOP(&pVCpu->em.s.StatHmExec, x1);
    24792512                    if (rc == VINF_EM_DBG_STEPPED || rc == VINF_EM_RESCHEDULE_HM || rc == VINF_EM_RESCHEDULE_REM || rc == VINF_EM_RESCHEDULE_RAW)
    24802513                        rc = VINF_SUCCESS;
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