Changeset 154 in vbox
- Timestamp:
- Jan 18, 2007 5:32:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp
r134 r154 473 473 if (CTXSUFF(pVM->patm.s.pGCState)->uPendingAction) 474 474 { 475 Log (("PATMHandleIllegalInstrTrap: Pending action %x at %VGv\n", CTXSUFF(pVM->patm.s.pGCState)->uPendingAction, pRegFrame->eip));475 LogFlow(("PATMGC: Pending action %x at %VGv\n", CTXSUFF(pVM->patm.s.pGCState)->uPendingAction, pRegFrame->eip)); 476 476 477 477 /* Private PATM interface (@todo hack due to lack of anything generic). */ … … 496 496 AssertMsg(!pRegFrame->edi || PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->edi), ("edx = %VGv\n", pRegFrame->edi)); 497 497 498 Log(("PATM HandleIllegalInstrTrap: lookup %VGv jump table=%VGv\n", pRegFrame->edx, pRegFrame->edi));498 Log(("PATMGC: lookup %VGv jump table=%VGv\n", pRegFrame->edx, pRegFrame->edi)); 499 499 500 500 pRec = PATMQueryFunctionPatch(pVM, (RTGCPTR)(pRegFrame->edx)); … … 533 533 * edi = GC address to jump to 534 534 */ 535 Log(("PATM HandleIllegalInstrTrap: Dispatch pending interrupt; eip=%VGv->%VGv\n", pRegFrame->eip, pRegFrame->edi));535 Log(("PATMGC: Dispatch pending interrupt; eip=%VGv->%VGv\n", pRegFrame->eip, pRegFrame->edi)); 536 536 537 537 /* Change EIP to the guest address the patch would normally jump to after setting IF. */ … … 556 556 #ifdef DEBUG 557 557 case PATM_ACTION_LOG_CLI: 558 Log(("PATM HandleIllegalInstrTrap: CLI at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) ));558 Log(("PATMGC: CLI at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) )); 559 559 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 560 560 return VINF_SUCCESS; 561 561 562 562 case PATM_ACTION_LOG_STI: 563 Log(("PATM HandleIllegalInstrTrap: STI at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) ));563 Log(("PATMGC: STI at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) )); 564 564 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 565 565 return VINF_SUCCESS; 566 566 567 567 case PATM_ACTION_LOG_POPF_IF1: 568 Log(("PATM HandleIllegalInstrTrap: POPF setting IF at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) ));568 Log(("PATMGC: POPF setting IF at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) )); 569 569 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 570 570 return VINF_SUCCESS; 571 571 572 572 case PATM_ACTION_LOG_POPF_IF0: 573 Log(("PATM HandleIllegalInstrTrap: POPF at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) ));573 Log(("PATMGC: POPF at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) )); 574 574 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 575 575 return VINF_SUCCESS; 576 576 577 577 case PATM_ACTION_LOG_PUSHF: 578 Log(("PATM HandleIllegalInstrTrap: PUSHF at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) ));578 Log(("PATMGC: PUSHF at %VGv (current IF=%d)\n", pRegFrame->eip, !!(pVM->patm.s.CTXSUFF(pGCState)->uVMFlags & X86_EFL_IF) )); 579 579 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 580 580 return VINF_SUCCESS; 581 581 582 582 case PATM_ACTION_LOG_IF1: 583 Log(("PATM HandleIllegalInstrTrap: IF=1 escape from %VGv\n", pRegFrame->eip));583 Log(("PATMGC: IF=1 escape from %VGv\n", pRegFrame->eip)); 584 584 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 585 585 return VINF_SUCCESS; 586 586 587 587 case PATM_ACTION_LOG_IRET: 588 Log(("PATM HandleIllegalInstrTrap: IRET from %VGv (IF->1) to %VGv new eflags=%x\n", pRegFrame->eip, pRegFrame->edx, pVM->patm.s.CTXSUFF(pGCState)->uVMFlags));588 Log(("PATMGC: IRET from %VGv (IF->1) to %VGv new eflags=%x\n", pRegFrame->eip, pRegFrame->edx, pVM->patm.s.CTXSUFF(pGCState)->uVMFlags)); 589 589 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 590 590 return VINF_SUCCESS; 591 591 592 592 case PATM_ACTION_LOG_RET: 593 Log(("PATM HandleIllegalInstrTrap: RET to %VGv\n", pRegFrame->edx));593 Log(("PATMGC: RET to %VGv\n", pRegFrame->edx)); 594 594 pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE; 595 595 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.