VirtualBox

Changeset 1604 in vbox for trunk/src


Ignore:
Timestamp:
Mar 21, 2007 5:12:03 PM (18 years ago)
Author:
vboxsync
Message:

Compile fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r1603 r1604  
    338338{
    339339    PVM pVM = TRPM2VM(pTrpm);
     340    int rc;
    340341
    341342    LogFlow(("TRPMGCTrap06Handler %VGv eflags=%x\n", pRegFrame->eip, pRegFrame->eflags.u32));
     
    365366        if (Cpu.pCurInstr->opcode == OP_ILLUD2)
    366367        {
    367             int rc = PATMGCHandleIllegalInstrTrap(pVM, pRegFrame);
     368            rc = PATMGCHandleIllegalInstrTrap(pVM, pRegFrame);
    368369            if (rc == VINF_SUCCESS || rc == VINF_EM_RAW_EMULATE_INSTR || rc == VINF_PATM_DUPLICATE_FUNCTION || rc == VINF_PATM_PENDING_IRQ_AFTER_IRET || rc == VINF_EM_RESCHEDULE)
    369370                return trpmGCExitTrap(pVM, rc, pRegFrame);
    370371        }
     372        /* Never generate a raw trap here; it might be a monitor instruction, that requires emulation. */
     373        rc = VINF_EM_RAW_EMULATE_INSTR;
    371374    }
    372375    else if (pRegFrame->eflags.Bits.u1VM)
    373376    {
    374         int rc = TRPMForwardTrap(pVM, pRegFrame, 0x6, 0, TRPM_TRAP_NO_ERRORCODE, TRPM_TRAP);
     377        rc = TRPMForwardTrap(pVM, pRegFrame, 0x6, 0, TRPM_TRAP_NO_ERRORCODE, TRPM_TRAP);
    375378        Assert(rc == VINF_EM_RAW_GUEST_TRAP);
    376379    }
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