VirtualBox

Changeset 13281 in vbox for trunk/src


Ignore:
Timestamp:
Oct 15, 2008 12:27:38 PM (16 years ago)
Author:
vboxsync
Message:

Fixed IP in the stack frame for #BP & #OF traps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r13277 r13281  
    577577            return VINF_EM_RESET;
    578578        }
    579         if (VMX_EXIT_INTERRUPTION_INFO_TYPE(intInfo) == VMX_EXIT_INTERRUPTION_INFO_TYPE_SW)
     579        if (    VMX_EXIT_INTERRUPTION_INFO_TYPE(intInfo) == VMX_EXIT_INTERRUPTION_INFO_TYPE_SW
     580            ||  iGate == 3 /* Both #BP and #OF point to the instruction after. */
     581            ||  iGate == 4)
     582        {
    580583            ip = pCtx->ip + cbInstr;
     584        }
    581585        else
    582586            ip = pCtx->ip;
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