VirtualBox

Changeset 51256 in vbox


Ignore:
Timestamp:
May 15, 2014 10:30:08 AM (11 years ago)
Author:
vboxsync
Message:

IEM: Fall back if IEMInjectTrpmEvent() did not do its job.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r51182 r51256  
    1093510935VMMDECL(VBOXSTRICTRC) IEMInjectTrpmEvent(PVMCPU pVCpu)
    1093610936{
     10937#ifndef IEM_IMPLEMENTS_TASKSWITCH
     10938    IEM_RETURN_ASPECT_NOT_IMPLEMENTED_LOG(("Event injection\n"));
     10939#else
    1093710940    uint8_t     u8TrapNo;
    1093810941    TRPMEVENT   enmType;
     
    1094610949    TRPMResetTrap(pVCpu);
    1094710950    return IEMInjectTrap(pVCpu, u8TrapNo, enmType, uErrCode, uCr2, cbInstr);
     10951#endif
    1094810952}
    1094910953
  • trunk/src/VBox/VMM/include/EMHandleRCTmpl.h

    r51182 r51256  
    278278#ifdef VBOX_WITH_FIRST_IEM_STEP
    279279            rc = VBOXSTRICTRC_VAL(IEMInjectTrpmEvent(pVCpu));
     280            /* The following condition should be removed when IEM_IMPLEMENTS_TASKSWITCH becomes true. */
     281            if (rc == VERR_IEM_ASPECT_NOT_IMPLEMENTED)
     282                rc = emR3ExecuteInstruction(pVM, pVCpu, "EVENT: ");
    280283#else
    281284            /* Do the same thing as VINF_EM_RAW_EMULATE_INSTR. */
    282             rc = emR3ExecuteInstruction(pVM, pVCpu, "EMUL: ");
     285            rc = emR3ExecuteInstruction(pVM, pVCpu, "EVENT: ");
    283286#endif
    284287            break;
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