VirtualBox

Changeset 1598 in vbox


Ignore:
Timestamp:
Mar 21, 2007 2:42:43 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19711
Message:

pop [esp+xx] uses esp *after* the actual pop

File:
1 edited

Legend:

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

    r1597 r1598  
    561561                pParam1 = (RTGCPTR)param1.val.val32;
    562562
     563                /* pop [esp+xx] uses esp after the actual pop! */
     564                AssertCompile(USE_REG_ESP == USE_REG_SP);
     565                if (    (pCpu->param1.flags & USE_BASE)
     566                    &&  (pCpu->param1.flags & (USE_REG_GEN16|USE_REG_GEN32))
     567                    &&  pCpu->param1.base.reg_gen32 == USE_REG_ESP
     568                   )
     569                   pParam1 = (RTGCPTR)((RTGCUINTPTR)pParam1 + param1.size);
     570               
    563571#ifdef IN_GC
    564572                /* Safety check (in theory it could cross a page boundary and fault there though) */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette