VirtualBox

Changeset 17924 in vbox


Ignore:
Timestamp:
Mar 16, 2009 12:18:08 PM (16 years ago)
Author:
vboxsync
Message:

Some cleanup

File:
1 edited

Legend:

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

    r17923 r17924  
    25872587                        X86EFLAGS eflags;
    25882588
    2589                         cbParm  = (Cpu.prefix & PREFIX_OPSIZE) ? 4 : 2;
    2590                         uMask   = (Cpu.prefix & PREFIX_OPSIZE) ? 0xffffffff : 0xffff;
     2589                        if (Cpu.prefix & PREFIX_OPSIZE)
     2590                        {
     2591                            cbParm = 4;
     2592                            uMask  = 0xffffffff;
     2593                        }
     2594                        else
     2595                        {
     2596                            cbParm = 2;
     2597                            uMask  = 0xffff;
     2598                        }
    25912599
    25922600                        rc = SELMToFlatEx(pVM, DIS_SELREG_SS, CPUMCTX2CORE(pCtx), pCtx->esp & uMask, 0, &GCPtrStack);
     
    26252633                        X86EFLAGS eflags;
    26262634
    2627                         cbParm  = (Cpu.prefix & PREFIX_OPSIZE) ? 4 : 2;
    2628                         uMask   = (Cpu.prefix & PREFIX_OPSIZE) ? 0xffffffff : 0xffff;
     2635                        if (Cpu.prefix & PREFIX_OPSIZE)
     2636                        {
     2637                            cbParm = 4;
     2638                            uMask  = 0xffffffff;
     2639                        }
     2640                        else
     2641                        {
     2642                            cbParm = 2;
     2643                            uMask  = 0xffff;
     2644                        }
    26292645
    26302646                        rc = SELMToFlatEx(pVM, DIS_SELREG_SS, CPUMCTX2CORE(pCtx), (pCtx->esp - cbParm) & uMask, 0, &GCPtrStack);
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