VirtualBox

Changeset 97153 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Oct 14, 2022 9:29:44 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154126
Message:

IEM: Added AES-NI instructions.

File:
1 edited

Legend:

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

    r97112 r97153  
    9292            || !(pVCpu->cpum.GstCtx.cr4 & X86_CR4_OSXSAVE) \
    9393            || !IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fAvx) \
     94            return iemRaiseUndefinedOpcode(pVCpu); \
     95        if (pVCpu->cpum.GstCtx.cr0 & X86_CR0_TS) \
     96            return iemRaiseDeviceNotAvailable(pVCpu); \
     97    } while (0)
     98#define IEM_MC_MAYBE_RAISE_AESNI_RELATED_XCPT() \
     99    do { \
     100        if (   (pVCpu->cpum.GstCtx.cr0 & X86_CR0_EM) \
     101            || !(pVCpu->cpum.GstCtx.cr4 & X86_CR4_OSFXSR) \
     102            || !IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fAesNi) \
    94103            return iemRaiseUndefinedOpcode(pVCpu); \
    95104        if (pVCpu->cpum.GstCtx.cr0 & X86_CR0_TS) \
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