VirtualBox

Ignore:
Timestamp:
Jul 4, 2022 12:52:29 PM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM: [v]pshufhb. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IEMMc.h

    r95487 r95499  
    8686            return iemRaiseDeviceNotAvailable(pVCpu); \
    8787    } while (0)
     88#define IEM_MC_MAYBE_RAISE_SSE42_RELATED_XCPT() \
     89    do { \
     90        if (   (pVCpu->cpum.GstCtx.cr0 & X86_CR0_EM) \
     91            || !(pVCpu->cpum.GstCtx.cr4 & X86_CR4_OSFXSR) \
     92            || !IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fSse42) \
     93            return iemRaiseUndefinedOpcode(pVCpu); \
     94        if (pVCpu->cpum.GstCtx.cr0 & X86_CR0_TS) \
     95            return iemRaiseDeviceNotAvailable(pVCpu); \
     96    } while (0)
    8897#define IEM_MC_MAYBE_RAISE_SSE41_RELATED_XCPT() \
    8998    do { \
     
    95104            return iemRaiseDeviceNotAvailable(pVCpu); \
    96105    } while (0)
    97 #define IEM_MC_MAYBE_RAISE_SSE42_RELATED_XCPT() \
     106#define IEM_MC_MAYBE_RAISE_SSSE3_RELATED_XCPT() \
    98107    do { \
    99108        if (   (pVCpu->cpum.GstCtx.cr0 & X86_CR0_EM) \
    100109            || !(pVCpu->cpum.GstCtx.cr4 & X86_CR4_OSFXSR) \
    101             || !IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fSse42) \
     110            || !IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fSsse3) \
    102111            return iemRaiseUndefinedOpcode(pVCpu); \
    103112        if (pVCpu->cpum.GstCtx.cr0 & X86_CR0_TS) \
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