VirtualBox

Changeset 1136 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 1, 2007 5:17:09 PM (18 years ago)
Author:
vboxsync
Message:

EMInterpretIret changes & fixes

File:
1 edited

Legend:

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

    r1127 r1136  
    12861286{
    12871287    RTGCUINTPTR pIretStack = (RTGCUINTPTR)pRegFrame->esp;
    1288     RTGCUINTPTR eip, cs, esp, ss, eflags, ds, es, fs, gs;
     1288    RTGCUINTPTR eip, cs, esp, ss, eflags, ds, es, fs, gs, uMask;
    12891289    int         rc;
    12901290
     
    13031303    AssertRCReturn(rc, VERR_EM_INTERPRETER);
    13041304
    1305     pRegFrame->eip = eip;
     1305    pRegFrame->eip = eip & 0xffff;
    13061306    pRegFrame->cs  = cs;
    13071307   
     1308    uMask = X86_EFL_TF|X86_EFL_AC|X86_EFL_ID|X86_EFL_VM|X86_EFL_IF|X86_EFL_IOPL|X86_EFL_NT|X86_EFL_VIF|X86_EFL_VIP;
     1309
     1310    eflags =    (pRegFrame->eflags.u32 & ~uMask)
     1311            |   (eflags & uMask);
     1312
    13081313#ifndef IN_RING0
    13091314    CPUMRawSetEFlags(pVM, pRegFrame, eflags);
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