VirtualBox

Changeset 15634 in vbox


Ignore:
Timestamp:
Dec 17, 2008 4:38:42 PM (16 years ago)
Author:
vboxsync
Message:

Check parameter size correctly (disabled smsw).

File:
1 edited

Legend:

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

    r15633 r15634  
    22312231    {
    22322232    case PARMTYPE_IMMEDIATE:
    2233         if(!(param1.flags & PARAM_VAL16))
     2233        if(param1.size != sizeof(uint16_t))
    22342234            return VERR_EM_INTERPRETER;
    22352235        rc = DISWriteReg16(pRegFrame, pCpu->param1.base.reg_gen, cr0);
     
    22412241
    22422242        /* Actually forced to 16 bits regardless of the operand size. */
    2243         if(!(param1.flags & PARAM_VAL16))
     2243        if(param1.size != sizeof(uint16_t))
    22442244            return VERR_EM_INTERPRETER;
    22452245
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